Comment 19 for bug 925361

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote : Re: [Bug 925361] Re: [6.1] date values that are initialized as 'defaults' may appear as "off by one day" in some countries depending on the time

On 08/21/2012 07:28 PM, Cristian Salamea (Gnuthink) wrote:
> Looks this results in runtime OpenERP debugging with pdb http://dpaste.org/CwcOx/.
> localtime() and gmtime() are the same, how openerp solve this in runtime ?

This is by design, as explained. OpenERP forces the standard Python modules to
act as if the local timezone was UTC. This is the key to implementing proper
datetime computations in server-side in 6.1.

BTW this is not the right question to ask, the right question would be: why do
you want to have a non-UTC time on server-side?! You should never need it if
you respect the rule.

PS: please don't use bug comments for help when you don't understand something,
Launchpad answers or the mailing-lists are better suited