Powershell Dir cmd-let LastWriteTime value for files differ than the DOS cmd /c dir. Please advise!
hi,
lastwritetime value of of dir or get-chiditem cmd-let different updated time property of file or dos dir command. seems daylight adjustment not handled properly. please advise.
ps:
dir user.js
mode lastwritetime length name
---- ------------- ------ ----
-a--- 6/13/2012 2:20 pm 1530 user.js
dos:
c:\>dir user.js06/13/2012 01:20 pm 1,530 user.js
i can duplicate issue now... i think i have explanation...
http://www.codeproject.com/articles/1144/beating-the-daylight-savings-time-bug-and-getting
it may explain seeing?
i did search on "dos time daylight saving", there's plenty of subject matter.
admiral ackbar says...
Windows Server > Windows PowerShell
Comments
Post a Comment