> 2) make an implicit assumption about the time of date (always 00:00:00?).
>
> Suggestions?
>
> On Sunday, 12 January 2014 06:00:15 UTC-6, Graham Robbins wrote:
>>
>> IS_DATE() formatter sets
>>
>> d = datetime.date(year, value.month, value.day)
>
IS_DATE() formatter sets
d = datetime.date(year, value.month, value.day)
and if self.timezone is not None it calls d.replace with the tzinfo
keyword, this results in the exception:
File "/home/www-data/web2py/gluon/validators.py", line 2263, in formatter
d = d.replace(tzinfo=utc).astime
2 matches
Mail list logo