I cannot reproduce the problem but I do not have a de.py language. I tried
with italian and it works. Is de-de.py it supposed to be there?
Anyway, can you send me a minimalist app to reproduce? Can you check latest
trunk? We did change some internal logic about languages.
massimo
On Tuesday, 28 August 2012 04:18:07 UTC-5, Andreas Kaiser wrote:
>
> Hi all,
>
> with the latest trunk the datetime translation seems to be broken.
> In models.py I have defined:
> <snip>
> db.timeevent.start.requires = [IS_NOT_EMPTY(),
> IS_DATETIME(format=T('%Y-%m-%d %H:%M:%S'))]
> db.timeevent.finish.requires = IS_DATETIME(format=T('%Y-%m-%d %H:%M:%S'))
> </snip>
>
> and in languages de-de.py is
> <snip>
> '%Y-%m-%d': '%d.%m.%Y',
> '%Y-%m-%d %H:%M:%S': '%d.%m.%Y %H:%M:%S',
> </snip>
>
> defined.
>
> At the form validation for an input like: 28.08.2012 08:00:00 the
> validation error: enter date and time as 1963-08-28 14:30:59 occurs. With
> the nightly build from yesterday there was no error.
> Version:
> Version 2.0.1 (2012-08-27 16:16:20) rc
>
> Andreas
>
--