← Back to team overview

openerp-india team mailing list archive

[Bug 746436] Re: After switch to BST(GMT+1), time in both clients is an hour ahead of what it should be

 

Hello Julian,

Have you checked whether you could still reproduce the problem after restarting the 6.0 server?
For 6.0 it is very likely that the OpenERP server needs to be restarted after each DST transition, in order to reset the internal timezone of the system. An alternative would be to call the time.tzset() function within the OpenERP server after the transition, for the same effect. This function can be called at any time so it could be accomplished by a scheduled task that is called everyday (say, at 3:00am).

For 6.1 we have solved this issue by converting all server-side datetime
values to UTC, avoiding these DST transition issues. The conversion is
done upon display at the client-side, and will observe DST changes in
real time.

As a result, I'm marking the bug solved in 6.1. (For 6.0 you may contact
the OpenERP Enterprise team if you need to implement the timezone reset
task)

Thanks for reporting!

** Changed in: openobject-server
       Status: Incomplete => Fix Released

** Changed in: openobject-server
    Milestone: None => 6.1

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/746436

Title:
  After switch to BST(GMT+1), time in both clients is an hour ahead of
  what it should be

Status in OpenERP Server:
  Fix Released

Bug description:
  Using 6.0.1

  
  Please be as specific as possible, including:
  1) Steps to reproduce the issue you have observed

  After daylight saving change in UK on Sunday, I notice that both web
  client and Gtk client show the time recorded after an event in
  openerp, one hour ahead of the true new time

  2) The result you observed

  With preferences for user set to Europe/London, ie UK time, after change to UK BST (British Summer Time which is GMT+1), that a time recorded for an update on an Opportunity, is shown as GMT+2.
  3) The result you expected

  We should see a time that is in BST, ie GMT+1, (we just move one hour in the uk with change to DST).
  4) The platform your are using

  Ubuntu Server , 10.04 LTS, 64 bit, openerp 6.0.1
  running command 'date' on linux server shows the correct time as BST, ie

  Thu Mar 31 09:56:35 BST 2011 (which is Thu Mar 31 08:56:35 UTC 2011)

  The time was correct when we were using Winter time, ie GMT (UTC)

  Effectively openerp is showing us at the same instant,

  Thu Mar 31 10:56:35 BST 2011

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/746436/+subscriptions