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.js

06/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

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file