Hello all.

My website is in English and Italian.

The created_on datetime filed from auth.signature is always displayed in 
Grid with the italian format (26/12/2013 12:41:20), also if I change the 
brownser language to "English".

Here is my db:
db.define_table('enquiries',
                Field('code', type='string'),
                Field('quantity', type='integer'),
                Field('note', type='text'),
                auth.signature)

Could I could control the datetime format in grid with strftime ?
def enquiries():
    db.enquiries.created_on.readable = True    query= db.enquiries
     grid=SQLFORM.grid(query=query)
     return dict(grid=grid)

Another thing, create_on is the summer time for Italy, so when it's 18:00, 
created_on save 17:00.

How can I manage it ?

Regards.

-- 
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/groups/opt_out.

Reply via email to