Hi, the issue is here https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L1830 can you try to replace that line with the following: iso_format = {'_data-w2p_datetime_format' : T('%Y-%m-%d %H:%M:%S')}
Paolo On Monday, December 22, 2014 11:02:00 PM UTC+1, mcamel wrote: > > Hi all, > > I use frequently spanish localization, so dates are formated like > day/month/year. > > Everything works fine if this is located at languages/es.py: '%Y-%m-%d > %H:%M:%S': '%d/%m/%Y %H:%M:%S'. Represents, validators and widgets, follow > this rule. > > But if you try to filter a grid by datetime with spanish format, it > doesn't work. You have to especify the query with Iso format, which is > annoying. > Even more, if you use 'w2p_timezone_plugin' to use local time zone, > datetime filter also ignores it, so you have to specify UTC timezone. > > So, datetime filters at grids only works with ISO format and UTC timezone. > > Anyone knows a trick to make this work?. > > Thanks! > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

