datetime fields translation in latest trunk

32 views
Skip to first unread message

Andreas Kaiser

unread,
Aug 28, 2012, 5:18:07 AM8/28/12
to web...@googlegroups.com
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

Massimo Di Pierro

unread,
Aug 28, 2012, 12:32:02 PM8/28/12
to web...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages