Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
fix time when IsAdjustedToUTC is false
Browse files Browse the repository at this point in the history
  • Loading branch information
glorv committed Jun 24, 2021
1 parent 2b55338 commit f871acc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/lightning/mydump/parquet_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,9 @@ func formatTime(v int64, units *parquet.TimeUnit, format, utcFormat string, utc
sec = v / 1e9
nsec = v % 1e9
}
t := time.Unix(sec, nsec)
t := time.Unix(sec, nsec).UTC()
if utc {
return t.UTC().Format(utcFormat)
return t.Format(utcFormat)
}
return t.Format(format)
}
Expand Down

0 comments on commit f871acc

Please sign in to comment.