Skip to content

Commit

Permalink
fix CI...
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao committed Jun 6, 2022
1 parent f83779e commit 4f497bc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions store/mockstore/unistore/cophandler/cop_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,10 @@ func buildDAG(reader *dbreader.DBReader, lockStore *lockstore.MemStore, req *cop
}
sc := flagsToStatementContext(dagReq.Flags)
switch dagReq.TimeZoneName {
case "System", "":
case "":
sc.TimeZone = time.FixedZone("UTC", int(dagReq.TimeZoneOffset))
case "System":
sc.TimeZone = time.Local
if dagReq.TimeZoneOffset > 0 {
sc.TimeZone = time.FixedZone("UTC", int(dagReq.TimeZoneOffset))
}
default:
sc.TimeZone, err = time.LoadLocation(dagReq.TimeZoneName)
if err != nil {
Expand Down

0 comments on commit 4f497bc

Please sign in to comment.