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 can I ignore timezone for a datetime field ?

By
PJ Soule
on 12/18/13, 10:59 AM 1,225 views

Hello everyone.

I have to manage flights information in my openerp module. I ask for flights dates and time to an external system, and this system sends me the times in the timezone for the departure and arrival airports, and I need to keep these dates unchanged.

But when I store these dates, openerp assumes that they are for the user timezone, and stores these in GMT.

So I can't I make openerp ignore its timezone management system for my fields ? I need to store and display the date I received from the system, not a converted datetime for the user's timezone.

I searched on the net about this, but didn't find anything.

Thank you !

All dates on openerp are saved on GMT, and then formatted to the user, to keep the openerp logic, you need in your flight information object to store the timezone, and then find a way to tell openerp web to format the time to that timezone and not the users.

Felipe
on 12/26/13, 11:47 AM

Didn't see this answer, sorry ! I think I'll look for another solution, a bit simplier, but thanks !

PJ Soule
on 3/5/14, 6:34 AM

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

0 follower(s)

Stats

Asked: 12/18/13, 10:59 AM
Seen: 1225 times
Last updated: 3/16/15, 8:10 AM