Bug in dumpdate and dumpdateutc if not in Geneva time zone:
dumpdate and dumpdateutc returned the wrong time for the following example if you are not in the 'Europe/Zurich' timezone. For 'America/Chicago' one e.g. gets:
for dumpdateutc I think it is better to use datetime.utcfromtimestamp
for dumpdate I would go over the utc time which is a solid conversion
datetime.datetime should also be replaced by datetime as it is imported as
from datetime import datetime
These two functions are also never used. I would suggest to maybe just remove them. If we take the version I proposed, please also test them before merging as I am not sure what exactly they were intended to do.
Bug in
dumpdate
anddumpdateutc
if not in Geneva time zone:dumpdate
anddumpdateutc
returned the wrong time for the following example if you are not in the 'Europe/Zurich' timezone. For 'America/Chicago' one e.g. gets:datetime.utcfromtimestamp
datetime.datetime
should also be replaced bydatetime
as it is imported asfrom datetime import datetime
These two functions are also never used. I would suggest to maybe just remove them. If we take the version I proposed, please also test them before merging as I am not sure what exactly they were intended to do.