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.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/WebService/ForecastIo/Alert.pm b/lib/WebService/ForecastIo/Alert.pm
index 37ff4ac..d402fa2 100644
--- a/lib/WebService/ForecastIo/Alert.pm
+++ b/lib/WebService/ForecastIo/Alert.pm
@@ -2,6 +2,7 @@ package WebService::ForecastIo::Alert;
use Moose;
use Moose::Util::TypeConstraints;
use MooseX::Types::URI 'Uri';
+use MooseX::Types::DateTime;
class_type 'WebService::ForecastIo::Alert';
@@ -25,7 +26,8 @@ has title => (
has expires => (
is => 'ro',
- isa => 'Int', # time!
+ isa => 'DateTime',
+ coerce => 1,
);
has uri => (