Skip to content

Commit

Permalink
fixed parsing errors when TZ is not UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
fazalmajid committed Sep 19, 2020
1 parent 663b5b3 commit 3092260
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion db.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func get_data(db *sql.DB) []string {
}
data := []string{strings.Join(header, ",") + "\n"}
for rounded, row = range points {
s := "\"" + rounded.String() + "\""
s := rounded.Format("2006-01-02T15:04:05")
for i := 0; i < len(row); i++ {
if row[i] == 0.0 || row[i] == -3600e3 {
s = s + ",-100.0"
Expand Down
Loading

0 comments on commit 3092260

Please sign in to comment.