[web2py] Re: 'tzinfo' is an invalid keyword argument for this function

2014-01-13 Thread Graham Robbins
> 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) >

[web2py] 'tzinfo' is an invalid keyword argument for this function

2014-01-12 Thread Graham Robbins
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