Skip to content

Commit

Permalink
Fixed time offset in EQZT data source
Browse files Browse the repository at this point in the history
  • Loading branch information
bclswl0827 committed Sep 1, 2024
1 parent 0ab7e78 commit e0d9bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/v1/trace/eqzt.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ func (j *EQZT) List(latitude, longitude float64) ([]seismicEvent, error) {
}

func (j *EQZT) getTimestamp(text string) int64 {
timestamp, _ := time.Parse("2006-01-02 15:04:05", text)
return timestamp.UnixMilli()
t, _ := time.Parse("2006-01-02 15:04:05", text)
return t.Add(-8 * time.Hour).UnixMilli()
}

func (j *EQZT) getLatitude(text string) float64 {
Expand Down

0 comments on commit e0d9bfe

Please sign in to comment.