I stumbled upon this because, when building gtfs-utils, I identifed this as a bug: GTFS Time values are defined relative to "12 hours before noon", so the implementation in this repo seems to fail during DST switches.
|
const addDuration = function (date, duration) { |
|
return addSeconds(addMinutes(addHours(date, duration.hours), duration.minutes), duration.seconds); |
|
} |
related: google/transit#15
I stumbled upon this because, when building
gtfs-utils, I identifed this as a bug: GTFS Time values are defined relative to "12 hours before noon", so the implementation in this repo seems to fail during DST switches.gtfs2lc/lib/ConnectionsBuilder.js
Lines 15 to 17 in cb0bdac
related: google/transit#15