Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to format dates in a timezone, different to the browser timezone?

By
Felipe
on 12/26/13, 11:39 AM 908 views

How to format dates in a timezone, different to the one the user has configured?

I have a form that should always format the date in a specific timezone, defined in the object record.

I Have tried to override the context 'tz' variable before the view opens, without success.

UPDATE: I saw there is a method: view_init(cr, uid, fields_list, context), but it only works for a new record, there is something like this when I open the view of an existing record?.

UPDATE2: It seems that openerp web ignores the user timezone configured, it just format the date with the browsers timezone, and only shows and alert if they are different, so it is useless to override the context 'tz' variable.

I was reading OpenERP is hardcoded to read UTC. Is this not the case?

Elephante, Sean Samborski
on 7/14/14, 9:59 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 12/26/13, 11:39 AM
Seen: 908 times
Last updated: 3/16/15, 8:10 AM