Skip to content

Commit

Permalink
Fix parse TZ
Browse files Browse the repository at this point in the history
  • Loading branch information
satraul committed Sep 8, 2020
1 parent 71850e0 commit 0e345d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ func convDec(raw string) (d decimal.Decimal) {
}

func convTime(raw string) (t time.Time) {
// May have timezone issues
t, err := time.ParseInLocation("02/01", raw, time.Local)
// Use +0700 WIB
l, _ := time.LoadLocation("Asia/Jakarta")
t, err := time.ParseInLocation("02/01", raw, l)
if err != nil {
return
}
Expand Down

0 comments on commit 0e345d2

Please sign in to comment.