Invalid Date Exception In active_buses Method
bschoenfeld opened this issue · comments
Looks like there is a typo in bus.rb on line 66
time = HrtBus::Parse.time([time, date].join(""))
Resulting data looks like this: 01:35:2603/03
The Parse function is expecting a space in there: DateTime.strptime(data, '%H:%M:%S %m/%d')
Amazingly, this bug didn't break everything all the time. Just didn't work for some data. Adding a space to the join fixes it.
I didn't realize that creating a pull request would create an issue too. Github is awesome. Closing this because its a duplicate of #2.