[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

SD card, exfat, file mtime wrong



debian-user:

I recently installed debian-live-11.1.0-amd64-xfce+nonfree.iso on a Dell Latitude E6520:

2021-12-06 17:52:45 dpchrist@laalaa ~
$ cat /etc/debian_version ; uname -a
11.1
Linux laalaa 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux


I am in California, USA. My timezone is Pacific Standard Time (PST). UTC is 8 hours ahead. tzselect(1) calls my timezone "America/Los_Angeles".


When I insert a SDXC card formatted with exfat into a USB adapter, plug the adapter into the laptop, and double-click on the icon that appears on the desktop, the SD card filesystem is mounted:

2021-12-06 17:52:53 dpchrist@laalaa ~
$ mount | grep media
/dev/sdc1 on /media/dpchrist/**redacted** type exfat (rw,nosuid,nodev,relatime,uid=**redacted**,gid=**redacted**,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro,uhelper=udisks2)


When I list the files on the SD card, the mtime is wrong. For example, here is a photograph that I took about ten minutes ago:

2021-12-06 18:13:02 dpchrist@laalaa /media/dpchrist/**redacted**/DCIM/**redacted**
$ ll IMG_6947.JPG
-rwxr-xr-x 1 dpchrist dpchrist 3988022 2021-12-06 10:02:57 IMG_6947.JPG


It appears that mount(8) and/or the exfat driver consider the mtime to be in UTC, and are applying my timezone adjustment of -08:00 hours (?).


I would like Debian 11 to display the mtime without any modification (e.g. correct local time).


Suggestions?


David


Reply to: