diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-10-06 16:57:54 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-10-06 16:57:54 +0200 |
commit | 3606527d76149fe59af960b7e2ab1d37a4be74f3 (patch) | |
tree | aba5855c4e4179b9b2640b3b0459d7206cd14912 /lib/Travel/Status/DE/IRIS/Result.pm | |
parent | 4a40e7ebdd84126278662dbaaa787e9864ab75c9 (diff) |
Use the same DateTime::Format::Strptime object for all Result objects
Diffstat (limited to 'lib/Travel/Status/DE/IRIS/Result.pm')
-rw-r--r-- | lib/Travel/Status/DE/IRIS/Result.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/IRIS/Result.pm b/lib/Travel/Status/DE/IRIS/Result.pm index 658eb28..b0bbb29 100644 --- a/lib/Travel/Status/DE/IRIS/Result.pm +++ b/lib/Travel/Status/DE/IRIS/Result.pm @@ -116,7 +116,7 @@ sub new { bless( $ref, $obj ); - $ref->{strptime_obj} = DateTime::Format::Strptime->new( + $ref->{strptime_obj} //= DateTime::Format::Strptime->new( pattern => '%y%m%d%H%M', time_zone => 'Europe/Berlin', ); |