summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-10-03 18:54:54 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-10-03 18:54:54 +0200
commit39c9e67e32b37b0a778c770c799800f3d1842702 (patch)
tree3f8603793b20f857368e416ef0602e07955d863a
parent071db7ee1ce1d2d022f192e80cf2f7c7aff4e176 (diff)
hafas-m: set second to 0 when a time is specified
-rwxr-xr-xbin/hafas-m3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/hafas-m b/bin/hafas-m
index f0e0299..a33c5dc 100755
--- a/bin/hafas-m
+++ b/bin/hafas-m
@@ -84,7 +84,8 @@ if ( $date or $time ) {
if ( $time =~ m{ ^ (?<hour> \d{1,2} ) : (?<minute> \d{1,2} ) $ }x ) {
$dt->set(
hour => $+{hour},
- minute => $+{minute}
+ minute => $+{minute},
+ second => 0,
);
}
else {