Skip to content

Commit

Permalink
fix: use utcnow time to test ctime info (#577)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-jam authored Aug 25, 2023
1 parent ad32812 commit a17043a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcsfs/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def test_info(gcs):
gcs.touch(a)
assert gcs.info(a) == gcs.ls(a, detail=True)[0]

today = datetime.date.today().isoformat()
today = datetime.datetime.utcnow().date().isoformat()
assert gcs.created(a).isoformat().startswith(today)
assert gcs.modified(a).isoformat().startswith(today)
# Check conformance with expected info attribute names.
Expand Down

0 comments on commit a17043a

Please sign in to comment.