Bugs item #3420417, was opened at 2011-10-07 15:21
Message generated for change (Tracker Item Submitted) made by calconst
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3420417&group_id=78018
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: win32
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Caleb Constantine (calconst)
Assigned to: Nobody/Anonymous (nobody)
Summary: PyTime value returned from FindFilesIterator is incorrect
Initial Comment:
The PyTime value in the WIN32_FIND_DATA object returned from FindFilesIterator() is incorrect. Say fdata is an instance returned from FindFilesIterator(), then time.localtime(int(fdata[3])) returns the UTC time, not the local time.
To reproduce:
(1) Create a new text file, say C:\test.txt
(2) Observe the modification date.
(3) Run the script on the command line with the path to the file created in (1) as the argument, e.g. pytimebug.py C:\test.txt
(4) Observe local time printed on screen is incorrect; in fact it is the UTC time.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3420417&group_id=78018
|