Skip to content

Commit

Permalink
fix: reset default time zone
Browse files Browse the repository at this point in the history
  • Loading branch information
YamingPei committed Oct 23, 2024
1 parent e69ef52 commit dce6a93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_bind.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def test_datetime_to_timestamp_default():

dt_str = "2020-01-01 00:00:00"
dt = datetime.strptime(dt_str, "%Y-%m-%d %H:%M:%S")
taos.field.set_tz(None)
# Time zone: Asia/Shanghai (CST, +0800)
# seconds_diff = 1577808000
seconds_diff = int(dt.timestamp())
Expand Down
1 change: 1 addition & 0 deletions tests/test_bind2.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def test_datetime_to_timestamp_default():

dt_str = "2020-01-01 00:00:00"
dt = datetime.strptime(dt_str, "%Y-%m-%d %H:%M:%S")
taos.field.set_tz(None)
# Time zone: Asia/Shanghai (CST, +0800)
# seconds_diff = 1577808000
seconds_diff = int(dt.timestamp())
Expand Down

0 comments on commit dce6a93

Please sign in to comment.