Quote:
Originally Posted by kovidgoyal
It will be a timezone issue, in some timezones the 1st of a month will be the last day of the previous month. Tell him to use the calibre.utils.date.parse_only_date function or to manually set the day of the date to 2nd instead of first. Or set the timezne info on the date to the local timezone.
|
Hi,
Setting the day to 2nd , as default, is a workaround.
What did change in calibre for this issue,because version 2.6 gave no problems with this at all.
I was used to create the date by:
Code:
from calibre.utils.date import utc_tz
return datetime.datetime(year, month, day, tzinfo=utc_tz)
I thought this way there is no timezone issue.