Message10870
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 |
|
Date |
User |
Action |
Args |
2016-06-30 17:13:30 | ttakamiy | set | messageid: <1467306810.41.0.341959752848.issue2504@psf.upfronthosting.co.za> |
2016-06-30 17:13:30 | ttakamiy | set | recipients:
+ ttakamiy |
2016-06-30 17:13:30 | ttakamiy | link | issue2504 messages |
2016-06-30 17:13:29 | ttakamiy | create | |
|