I am using GetFileDate to see if an open file is modified outside of my program, so I can warn the user it has been changed. Having traveled a few times recently, I changed the timezone of my pc while my program was open. Immediately, I was warned that the open files were open.
That means that GetFileDate does NOT actually return the last modified time, but rather, some other calculated value based on the time zone. This little loop demonstrates it--just run it, and change the timezone of your pc while it is running, and you will see the numbers change.
Code: Select all
test1:
Debug GetFileDate("TestFile.txt", #PB_Date_Modified)
Delay(150)
Goto test1
Is there a (cross-platform) way to get the "real" file modified date, so you can "safely" use this command?