Skip to content

Commit

Permalink
fix timezone info
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanhemani committed Apr 10, 2023
1 parent 245d3e6 commit 53c3cfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import re
import datascience as ds
from datascience import formats
import os


def assert_equal(string1, string2):
Expand Down Expand Up @@ -93,7 +94,8 @@ def test_date_format():

def test_date_formatter_format_value():
formatter = formats.DateFormatter()
assert_equal(formatter.format_value(1666264489.9004), "2022-10-20 08:14:49.900400")
os.environ["TZ"] = "UTC"
assert_equal(formatter.format_value(1666264489.9004), "2022-10-20 11:14:49.900400")


def test_percent_formatter():
Expand Down

0 comments on commit 53c3cfe

Please sign in to comment.