Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: Fix timeformat.parseShortDate()
Do the "strip off time and set to midnight" step already for the reference Date input of parse(). Substracting it afterwards previously caused the returned date to be off by one day for time zones East of UTC. Test with: for TZ in America/New_York UTC Europe/Berlin; do pytest -k timeformat || break; done
- Loading branch information