Skip to content

Commit

Permalink
* Use embedded tzdata to handle timezone issue in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
edward-yakop committed Dec 29, 2020
1 parent ad5ce53 commit 7935445
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/simulator/parser/parser_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"strconv"
"strings"
"time"
_ "time/tzdata"
"unicode"
)

Expand All @@ -35,7 +36,7 @@ func locationNewYork() *time.Location {
if locNewYork == nil {
temp, err := time.LoadLocation("America/New_York")
if err != nil {
log.Fatal("Unable to load new york location for parsing time")
log.Fatal("Unable to load new york location for parsing time", err)
}
locNewYork = temp
}
Expand Down

0 comments on commit 7935445

Please sign in to comment.