thanks, but I have try the code and it looks that is for changing the time zone or so. I can't figure how to use the code to just set a date or a time.
JCanon,
As the FAQ "Note" implies, this API expects the date and time in GMT (Greenwich Mean Time) or UTC, so you must adjust the DateTime for your local timezone. DOS didn't worry about these things but Windows does. In fact if you format your disk in NTFS the file properties are also stored in GMT and the OS will "adjust" so they look like your current system settings - e.g. in Explorer. If your disk is formatted in FAT16/32, the dates stored for files are strictly local time, and they won't change if you change the TZ or Daylight Savings setting!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.