diff options
Diffstat (limited to 'lib/WebService/ForecastIo/DataPoint.pm')
-rw-r--r-- | lib/WebService/ForecastIo/DataPoint.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/WebService/ForecastIo/DataPoint.pm b/lib/WebService/ForecastIo/DataPoint.pm index c05e981..ba06fa1 100644 --- a/lib/WebService/ForecastIo/DataPoint.pm +++ b/lib/WebService/ForecastIo/DataPoint.pm @@ -1,6 +1,7 @@ package WebService::ForecastIo::DataPoint; use Moose; use Moose::Util::TypeConstraints; +use MooseX::Types::DateTime; class_type 'WebService::ForecastIo::DataPoint'; @@ -22,7 +23,8 @@ has [qw( time precipIntensityMaxTime temperatureMinTime temperatureMaxTime )] => ( is => 'ro', - isa => 'Int', # time! + isa => 'DateTime', + coerce => 1, ); has [qw(summary icon precipType)] => ( |