Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1986 closed Bug (Works For Me)

FileSetTime() sets wrong the TIMESTAMP when Windows 7 x64

Reported by: brunonar@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.6.1 Severity: None
Keywords: FileSetTime(), TIMESTAMP, Cross Platform compatibility Cc:

Description

When it's used on Windows 7 x64 ( With or without the x64 autoit tools) the TIMESTAMP of "created file time" is added by 1 hour. So, when I throw the command:

FileSetTime($userFile,"20051225100000",1)

I got the same result when I was using this command on XP x86:

FileSetTime($userFile,"20051225000000",1)

I've used the same script on both systems.
After that happened, I've installed the BETA version but the same issue was showed...

Attachments (0)

Change History (4)

comment:1 Changed 13 years ago by brunonar@…

I'm sorry, the right command to equals the XP version is:
(((
FileSetTime($userFile,"20051225230000",1)
)))

Both systems have -3 GMT timezone setting.

comment:2 Changed 13 years ago by Jpm

is the "daylight saving time" the same for both system?

comment:3 Changed 13 years ago by Valik

  • Resolution set to Works For Me
  • Status changed from new to closed

The following script works correctly for me:

Local Const $sFile = @ScriptDir & "\FileSetTimeTest.txt"
Local Const $sExpectedTime = "20051225100000"
FileWrite($sFile, "Data")
Local Const $sTime1 = FileGetTime($sFile, 1, 1)
FileSetTime($sFile,$sExpectedTime,1)
Local Const $sTime2 = FileGetTime($sFile, 1, 1)
MsgBox(4096, "", StringFormat("Before:\t%s\r\nAfter:\t%s\r\nExpected:\t%s", $sTime1, $sTime2, $sExpectedTime))
FileDelete($sFile)

comment:4 Changed 13 years ago by brunonar@…

Yeah, I still don't know what happened. But the problem happens yet. When I've time to solve it out I'll post the solution here. Thank you so far.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.