Unsolved QFile save to USB drive uses UTC as date modified
-
Running a BeagleBoneBlack, Debian Jessie, 4.4 Kernel, Qt 5.7
When I use QFile to save a file to a connected USB drive, it uses the UTC time of the system rather than the local time. I haven't seen anything discussed about this, so I'm curious if anyone else has seen/resolved this issue.
# date Tue Nov 6 11:16:44 EST 2018
# timedatectl Local time: Tue 2018-11-06 11:16:54 EST Universal time: Tue 2018-11-06 16:16:54 UTC RTC time: Tue 2018-11-06 16:16:55 Time zone: America/New_York (EST, -0500)
So to clarify: If I created a new file at this time, the "date modified" when plugged into another system (Windows/Ubuntu) would reflect 4:16 pm instead of 11:16 am.
Also, if I simply generate a file with vim to the USB it will have the 11:16 am date/time.
-
@While_e
Oh, I thought all Unixes saved file times in UTC always.... -
Almost all current version of Unix systems have a way to set 'timezone' and I've never seen any files saved as UTC. Testing between various hosts and clients saving files manually has never caused this.
-