diff options
author | dakkar <dakkar@thenautilus.net> | 2023-12-09 13:10:17 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2023-12-09 13:10:17 +0000 |
commit | 8bd30555a18dcab02dc95ea8b3701cdc7adbabb6 (patch) | |
tree | 4a2351d6111c8231fb04db72391ea2da5d60dbf3 /lib/WebService/ForecastIo | |
parent | we can use the new weather api (diff) | |
download | HomePanel-8bd30555a18dcab02dc95ea8b3701cdc7adbabb6.tar.gz HomePanel-8bd30555a18dcab02dc95ea8b3701cdc7adbabb6.tar.bz2 HomePanel-8bd30555a18dcab02dc95ea8b3701cdc7adbabb6.zip |
new bus api
Diffstat (limited to 'lib/WebService/ForecastIo')
-rw-r--r-- | lib/WebService/ForecastIo/DataPoint.pm | 6 | ||||
-rw-r--r-- | lib/WebService/ForecastIo/DataSpan.pm | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/WebService/ForecastIo/DataPoint.pm b/lib/WebService/ForecastIo/DataPoint.pm index 47ef659..db9fb77 100644 --- a/lib/WebService/ForecastIo/DataPoint.pm +++ b/lib/WebService/ForecastIo/DataPoint.pm @@ -1,7 +1,7 @@ package WebService::ForecastIo::DataPoint; use Moo; use namespace::autoclean; -use Types::DateTime 'DateTimeT'; +use Types::DateTime -all; use Types::Standard -all; has [qw( time @@ -9,8 +9,8 @@ has [qw( time precipIntensityMaxTime temperatureMinTime temperatureMaxTime )] => ( is => 'ro', - isa => DateTimeT, - coerce => DateTimeT->coercion, + isa => DateTimeUTC, + coerce => 1, ); has [qw(summary icon precipType)] => ( diff --git a/lib/WebService/ForecastIo/DataSpan.pm b/lib/WebService/ForecastIo/DataSpan.pm index 4911442..930f3e5 100644 --- a/lib/WebService/ForecastIo/DataSpan.pm +++ b/lib/WebService/ForecastIo/DataSpan.pm @@ -1,20 +1,20 @@ package WebService::ForecastIo::DataSpan; use Moo; use namespace::autoclean; -use Types::DateTime 'DateTimeT'; +use Types::DateTime -all; has start_time => ( is => 'ro', - isa => DateTimeT, - coerce => DateTimeT->coercion, + isa => DateTimeUTC, + coerce => 1, required => 1, ); has stop_time => ( is => 'ro', writer => '_set_stop_time', - isa => DateTimeT, - coerce => DateTimeT->coercion, + isa => DateTimeUTC, + coerce => 1, required => 1, ); |