summaryrefslogtreecommitdiff
path: root/lib/WebService/ForecastIo/Alert.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/WebService/ForecastIo/Alert.pm')
-rw-r--r--lib/WebService/ForecastIo/Alert.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/WebService/ForecastIo/Alert.pm b/lib/WebService/ForecastIo/Alert.pm
index af826d8..73f7200 100644
--- a/lib/WebService/ForecastIo/Alert.pm
+++ b/lib/WebService/ForecastIo/Alert.pm
@@ -1,9 +1,9 @@
package WebService::ForecastIo::Alert;
use Moo;
-use namespace::autoclean;
use Types::Standard -all;
use Types::URI 'Uri';
-use Types::DateTime 'DateTimeT';
+use Types::DateTime -all;
+use namespace::clean;
has title => (
is => 'ro',
@@ -12,8 +12,8 @@ has title => (
has expires => (
is => 'ro',
- isa => DateTimeT,
- coerce => DateTimeT->coercion,
+ isa => DateTimeUTC,
+ coerce => 1,
);
has uri => (