You are not logged in.

#1 2025-04-05 04:35:49

Silgrond
Member
Registered: 2025-03-20
Posts: 19

Incorrect timestamps when mounting exFAT SD card

Hi all,

Whenever I insert my camera’s SD card (formatted as exfat), the mount happens automatically via /run/media/silgrond/F891-9F7C, and the file timestamps are consistently 9 hours ahead of the actual time the photos were taken.
For example:
exiftool -DateTimeOriginal DSCF2453.JPG
# => 2025:04:05 10:33:21

shows as 2025-04-05 19:33:22 in Nautilus/Dolphin.

According to ChatGPT, this is expected behavior if Linux assumes FAT/exFAT stores timestamps in UTC, but cameras (like mine) write FAT timestamps in local time (JST). So this leads to a +9h shift on mount.

So my question: How can I mount an exFAT SD card from a camera in a way that correctly preserves local (JST) timestamps, or prevent this +9h offset?

my timedatectl:
Local time: Sat 2025-04-05 13:32:17 JST
Universal time: Sat 2025-04-05 04:32:17 UTC
RTC time: Sat 2025-04-05 04:32:17
Time zone: Asia/Tokyo (JST, +0900)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no

Thank you,
Silgrond

Offline

#2 2025-04-05 05:40:21

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,677

Re: Incorrect timestamps when mounting exFAT SD card

You should be able to specify time_offset=<minutes> as an argument to mount. In your specific case adding time_offset=$((9*60)) to the mount options should work.

Offline

Board footer

Powered by FluxBB