From: <js...@us...> - 2007-12-05 13:59:13
|
Revision: 4612 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4612&view=rev Author: jswhit Date: 2007-12-05 05:59:10 -0800 (Wed, 05 Dec 2007) Log Message: ----------- fixed time zone offset bug in num2date. Modified Paths: -------------- trunk/toolkits/basemap/lib/matplotlib/toolkits/basemap/netcdftime.py Modified: trunk/toolkits/basemap/lib/matplotlib/toolkits/basemap/netcdftime.py =================================================================== --- trunk/toolkits/basemap/lib/matplotlib/toolkits/basemap/netcdftime.py 2007-12-05 13:11:58 UTC (rev 4611) +++ trunk/toolkits/basemap/lib/matplotlib/toolkits/basemap/netcdftime.py 2007-12-05 13:59:10 UTC (rev 4612) @@ -703,11 +703,11 @@ shape = time_value.shape # convert to desired units, remove time zone offset. if self.units in ['second','seconds']: - jdelta = time_value/86400. - self.tzoffset*60 + jdelta = time_value/86400. - self.tzoffset/1440. elif self.units in ['minute','minutes']: - jdelta = time_value/1440. - self.tzoffset + jdelta = time_value/1440. - self.tzoffset/1440. elif self.units in ['hours','hours']: - jdelta = time_value/24. - self.tzoffset/60. + jdelta = time_value/24. - self.tzoffset/1440. elif self.units in ['day','days']: jdelta = time_value - self.tzoffset/1440. jd = self._jd0 + jdelta This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |