Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Fix missing time format (#1080)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbecquet authored May 4, 2021
1 parent 6549c77 commit b5f279f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapters/osm_schedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function nextTransitionTime(seconds, nextTransitionDate) {
"2019-05-12T18:00:00+02:00" => "18:00:00"
*/
const nextTransition = hourToDate(nextTransitionDate.slice(11, 19));
return getTimeFormatter().format(nextTransition);
return getTimeFormatter({ hour: '2-digit', minute: '2-digit' }).format(nextTransition);
}
return false;
}
Expand Down

0 comments on commit b5f279f

Please sign in to comment.