[ROOT] localtime in axis time offset not good

From: Damir Buskulic (buskulic@lapp.in2p3.fr)
Date: Tue Nov 25 2003 - 10:38:20 MET


Hi,

I just came accross a problem in the display of time dependent data. It 
appears that the time offset on the various axis is expressed in local 
time (function localtime()). When one sends time dependent data to 
colleagues overseas, the time considered by the axis will be their 
localtime, not the one at the source, hence shifted by a few hours.

In any case, it seems to me that one should use the gmtime() function 
to strictly use and display UTC time. Of course, this means a shift by 
a few hours in the data, but this time will be the same all around the 
world.
Perhaps should we introduce a SetTimeOffsetUTC() ? In that case, the 
string representing the time offset (after the %F for the experts...) 
should probably note it with a "UTC" somewhere.

Any comments ?

Cheers

Damir

====================================
Damir Buskulic,  Universite de Savoie/LAPP
Chemin de Bellevue, B.P. 110, F-74941 Annecy-le-Vieux Cedex, FRANCE
Tel : +33 (0)450091600
e-mail: buskulic@lapp.in2p3.fr
====================================



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET