Skip to content
Snippets Groups Projects
Commit fee3a41d authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

Make sure timestamps can be represented by Python no matter the timezone

parent 54490c98
No related branches found
Tags v0.0.35
No related merge requests found
......@@ -41,8 +41,10 @@ def persons():
def timestamps():
max_seconds = datetime.datetime.max.timestamp()
min_seconds = datetime.datetime.min.timestamp()
max_seconds = datetime.datetime.max.replace(
tzinfo=datetime.timezone.utc).timestamp()
min_seconds = datetime.datetime.min.replace(
tzinfo=datetime.timezone.utc).timestamp()
return builds(
Timestamp,
seconds=integers(min_seconds, max_seconds),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment