AndreiV Posted June 17, 2014 Share Posted June 17, 2014 I have a script that basically reads the EXIF date taken from some jpg files and uses it to set the date created and date modified to that date. (I read the exif using exiftool.exe) Everything works just fine, except for one very strange thing: the hour from the timestamp is always one hour behind. For example, if the EXIF date taken is 2014:06:17 12:00:00, after writing this to date created using FileSetTime() (of course, first a adjusted the string to be as requested by the function) it works fine, the date created is adjusted but, when I look at the file properties in windows explorer, the EXIF tag is 2014:06:17 12:00:00, while the date created is 2014:06:17 11:00:00. Where is this one hour difference coming from? Link to comment Share on other sites More sharing options...
JohnOne Posted June 17, 2014 Share Posted June 17, 2014 locale? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
AndreiV Posted June 17, 2014 Author Share Posted June 17, 2014 Romanian (EEST) and time is GMT +3 now. http://24timezones.com/current_local/romania_time.php Link to comment Share on other sites More sharing options...
AndreiV Posted June 17, 2014 Author Share Posted June 17, 2014 I did a little more experimenting. After setting the date with FileSetTime() a read back the time with FileGetTime() and wrote the output to a text file. From the script, the date and time are ok: Processing file P0100013.jpg Exiftool returned: 20010113120000 New file Created Time : 20010113120000 New file Modified Time: 20010113120000 But in windows explorer this same file has the time modified one hour behind. Link to comment Share on other sites More sharing options...
AndreiV Posted June 17, 2014 Author Share Posted June 17, 2014 Found the problem. The files that I was modifying are on a Diskstation NAS. It looks like the NAS doesn't have DST settings. I just changed the time zone on the NAS to GMT +3 and not it is ok. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now