arter97 / exfat-linux

EOL exFAT filesystem module for Linux kernel. Everyone should be using https://github.com/namjaejeon/linux-exfat-oot instead.
Other
262 stars 59 forks source link

timestamps incorrect timezone wrongly handled #40

Open biokomiker opened 1 year ago

biokomiker commented 1 year ago

Dear Park,

Are you also maintaining the exfat module already incorporated into the kernel?

The time stamps are incorrect .A typical use case is a digital camera with an exfat formatted SD card. I use a Sony RX100 camera and upon transferring the files to the computer all times are wrong.

Please find below the output for mounting via kernel and via exfat-fuse:

*** Mount via kernel (Linux InaUbuntu 5.15.0-47-generic #51-Ubuntu SMP Thu Aug 11 07:51:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux)

-rwxr-xr-x 1 georg georg 20658688 2022-09-05 23:48:08.000000000 +0200 DSC01565.ARW  <==== not correct the picture was taken two hours earlier
-rwxr-xr-x 1 georg georg 20663296 2022-09-06 00:11:34.000000000 +0200 DSC01566.ARW  <==== not correct the picture was taken two hours earlier
-rwxr-xr-x 1 georg georg 20671488 2022-09-06 00:24:58.000000000 +0200 DSC01567.ARW  <==== not correct the picture was taken two hours earlier

/dev/sdc1 on /media/georg/disk type exfat (rw,nosuid,nodev,relatime,uid=1001,gid=1001,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro,uhelper=udisks2)

*** Mount via sudo mount.exfat-fuse /dev/sdb1 ./mount (https://github.com/relan/exfat)

-rwxrwxrwx 1 root root 20658688 2022-09-05 21:48:08.000000000 +0200 DSC01565.ARW <==== correct
-rwxrwxrwx 1 root root 20663296 2022-09-05 22:11:34.000000000 +0200 DSC01566.ARW <==== correct
-rwxrwxrwx 1 root root 20671488 2022-09-05 22:24:58.000000000 +0200 DSC01567.ARW <==== correct

/dev/sdb1 on /home/georg/mount type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)

Camera with exfat formatted card & Linuxbox is on CEST+DST (+0200)

timedatectl
               Local time: Mo 2022-09-05 22:42:20 CEST
           Universal time: Mo 2022-09-05 20:42:20 UTC
                 RTC time: Mo 2022-09-05 20:42:20
                Time zone: Europe/Zurich (CEST, +0200)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

It appears that the UTC+0200 is added when establishing the files with the mounted filesystem.

Best regards,

Georg