[wxPython-users] 2.6=>2.8 (windows) - wxHorror :/
Robin Dunn
robin at alldunn.com
Fri Oct 12 23:27:30 PDT 2007
Wojtek P wrote:
> >
> > 2) some troubles with julian date (i use only whole days without
> time) -
> > in 2.6 i got for example GetJDN()==2.5, and now this same
> date==2.485 -
> > and finally i get wrong result date - i use now ResetTime() for
> better
> > way (i get xxxx.xx.xx 01:00:00, with 2.6 i got 00:00:00 time)
>
> Can you provide some sample code that shows this problem?
>
>
> import wx
> import wx._misc as misc
> import sys
>
> print "\n\n Python",sys.version
> print " wxPython", wx.VERSION_STRING,"\n"
>
> test_date = misc.DateTimeFromDMY(1,1,2001) # 01.01.2001
> print " test_date",test_date
> test_jdn = test_date.GetJDN()
> print " test_date.GetJDN()",test_jdn
>
>
> Results:
>
> # Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)]
> # wxPython 2.6.1.0 <http://2.6.1.0>
> # test_date 02/01/01 00:00:00
> # test_date.GetJDN() 2451941.5
>
> # Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)]
> # wxPython 2.8.4.2 <http://2.8.4.2>
> # test_date 02/01/01 00:00:00
> # test_date.GetJDN() 2451941.45833
One of the change logs mentioned fixing a bunch of Time Zone related
bugs. Perhaps this difference is related to that? If not then please
enter a bug report about it using the "Common" category.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list