View Single Post
Old 11-10-2014, 08:04 AM   #12
Pr.BarnArt
Addict
Pr.BarnArt ought to be getting tired of karma fortunes by now.Pr.BarnArt ought to be getting tired of karma fortunes by now.Pr.BarnArt ought to be getting tired of karma fortunes by now.Pr.BarnArt ought to be getting tired of karma fortunes by now.Pr.BarnArt ought to be getting tired of karma fortunes by now.Pr.BarnArt ought to be getting tired of karma fortunes by now.Pr.BarnArt ought to be getting tired of karma fortunes by now.Pr.BarnArt ought to be getting tired of karma fortunes by now.Pr.BarnArt ought to be getting tired of karma fortunes by now.Pr.BarnArt ought to be getting tired of karma fortunes by now.Pr.BarnArt ought to be getting tired of karma fortunes by now.
 
Pr.BarnArt's Avatar
 
Posts: 397
Karma: 401800
Join Date: Jun 2011
Device: Pocketbook 902 / Ipad air/ kindle paperwhite
Quote:
Originally Posted by kovidgoyal View Post
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.
Pr.BarnArt is offline   Reply With Quote