kennethreitz / maya

Datetimes for Humans™
MIT License
3.41k stars 199 forks source link

WIP: Midnight in paris - is this a bug ? #189

Open thomasleveil opened 3 years ago

thomasleveil commented 3 years ago

Am I wrong expecting those new tests to pass ?

# assuming we are on the 2020-08-04T01:00:00+02:00
assert str(maya.when("midnight", timezone='Europe/Paris').datetime(to_timezone="Europe/Paris")) == "2020-08-04 00:00:00+02:00"