summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/IRIS
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-10-06 16:57:54 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-10-06 16:57:54 +0200
commit3606527d76149fe59af960b7e2ab1d37a4be74f3 (patch)
treeaba5855c4e4179b9b2640b3b0459d7206cd14912 /lib/Travel/Status/DE/IRIS
parent4a40e7ebdd84126278662dbaaa787e9864ab75c9 (diff)
Use the same DateTime::Format::Strptime object for all Result objects
Diffstat (limited to 'lib/Travel/Status/DE/IRIS')
-rw-r--r--lib/Travel/Status/DE/IRIS/Result.pm2
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',
);