Skip to content
Snippets Groups Projects
Unverified Commit 39c9e67e authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

hafas-m: set second to 0 when a time is specified

parent 071db7ee
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment