Compare commits

..

No commits in common. "e7960b825368342c3c4822d07c2f5da2cab1baca" and "aa958b77b16d0f0891e65bb0d3eea24ee0e773ea" have entirely different histories.

2 changed files with 1 additions and 14 deletions

View File

@ -1,3 +0,0 @@
# Bus Departures
Display bus departures for specific routes on specific stops.

View File

@ -9,20 +9,10 @@ import (
func parseUnixTimestamp(timestamp string) (time.Time, error) {
var t = time.Time{}
loc, err := time.LoadLocation("Europe/Amsterdam")
if err != nil {
return t, err
}
i, err := strconv.ParseInt(timestamp, 10, 64)
if err != nil {
return t, err
}
t, err = time.Unix(i, 0), nil
if err != nil {
return t, err
}
return t.In(loc), nil
return time.Unix(i, 0), nil
}