ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activepython
activepython
Re: DST 2007 bug [was Re: ANN: ActivePython 2.5.0.0 is now available]
by Trent Mick other posts by this author
Mar 13 2007 2:59PM messages near this date
view in the new Beta List Site
DST 2007 bug [was Re: ANN: ActivePython 2.5.0.0 is now available] | Re: DST 2007 bug [was Re: ANN: ActivePython 2.5.0.0 is now available]
Bob Kline wrote:
> > I'm happy to announce that ActivePython 2.5.0.0 is now available for
> > download
>  
>  Thanks, but even in this new version ActivePython does not report the
>  correct time, even on a machine whose CRT (msvcrt.dll) has been patched
>  with the KB932590 fix from Microsoft.
>  
>  C:\Python25>dir c:\WINDOWS\system32\msvcrt.dll
>   Volume in drive C has no label.
>   Volume Serial Number is 949C-3C97
>  
>   Directory of c:\WINDOWS\system32
>  
>  02/19/2007  06:32 AM           343,040 msvcrt.dll
>                 1 File(s)        343,040 bytes
>                 0 Dir(s)  28,680,716,288 bytes free
>  
>  C:\Python25>time
>  The current time is: 17:35:39.02
>  Enter the new time:
>  
>  C:\Python25>python
>  ActivePython 2.5.0.0 (ActiveState Software Inc.) based on
>  Python 2.5 (r25:51908, Mar  9 2007, 17:40:28) [MSC v.1310 32 bit (Intel)]
>  on win32
>  Type "help", "copyright", "credits" or "license" for more information.
> >>> import time
> >>> time.asctime()
>  'Tue Mar 13 16:35:46 2007'
>  

I'll admit to some ignorance here, but Python is getting its time information 
from the operating system, so an incorrect value (as far as my ignorance 
knows) is indicative of an issue with the system.

Note that ActivePython 2.5 is built with VC7.1 so it depends on msvcr71.dll 
rather than msvcrt.dll.

It looks like this KB article is then more relevant:
http://support.microsoft.com/kb/932299

ActivePython installs that DLL if it is not available so I suppose the burden 
may be on ActivePython. Note that this works on my machine and this is the 
same version of msvcr71.dll that is distributed with ActivePython so I'm not 
sure where the disconnect is.


>  C:\>time
>  The current time is: 14:43:37.48
>  Enter the new time:
>  C:\>python
>  ActivePython 2.5.0.0 (ActiveState Software Inc.) based on
>  Python 2.5 (r25:51908, Mar  9 2007, 17:40:28) [MSC v.1310 32 bit (Intel)] on win
>  32
>  Type "help", "copyright", "credits" or "license" for more information.
> >>> import time
> >>> time.asctime()
>  'Tue Mar 13 14:43:46 2007'


I've started this bug to look into it:
http://bugs.activestate.com/show_bug.cgi?id=68115

Thanks,
Trent

-- 
Trent Mick
trentm at activestate.com
_______________________________________________
ActivePython mailing list
ActivePython@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython
Thread:
Trent Mick
Bob Kline
Trent Mick
Bob Kline
Trent Mick

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved