Message10870

Author ttakamiy
Recipients ttakamiy
Date 2016-06-30.17:13:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1467306810.41.0.341959752848.issue2504@psf.upfronthosting.co.za>
In-reply-to
Content
I did some debugging and found the problem was in datetime.date.__tojava__ method.  

In that method, a java.util.GregorianCalendar object is create for the UTC timezone and a java.sql.Date object is created based on the time stamp of the GregorianCalendar object.  The problem is that when the Date object is created, the timezone is converted from UTC to the default timezone, which is US Eastern time in my case.

Therefore, the problem can be worked around by overriding datetime._utc_timezone by the default timezone (see attached datetest.py).  However, I think datetime.date.__tojava__ needs to be fixed for this issue.  Thanks, Tami
History
Date User Action Args
2016-06-30 17:13:30ttakamiysetmessageid: <1467306810.41.0.341959752848.issue2504@psf.upfronthosting.co.za>
2016-06-30 17:13:30ttakamiysetrecipients: + ttakamiy
2016-06-30 17:13:30ttakamiylinkissue2504 messages
2016-06-30 17:13:29ttakamiycreate