Skip to content

Commit 903db9e

Browse files
ryehawkrives
authored andcommitted
parseTime: Duplicate commentary on dayOfYear handling
Suggested-by: Hawken Rives <[email protected]> Signed-off-by: Kristofer Rye <[email protected]>
1 parent dd17c6e commit 903db9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/views/transportation/bus/lib/parse-time.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ const TIME_FORMAT = 'h:mma'
44
const TIMEZONE = 'America/Winnipeg'
55
import moment from 'moment-timezone'
66

7+
// TODO: Do "dayOfYear" handling better so that we don't need to handle wrapping at
8+
// the 6 month mark. (See #3375 for why this function changed.)
79
export const parseTime = (now: moment) => (
810
time: string | false,
911
): null | moment => {

0 commit comments

Comments
 (0)