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

Re: Timezone



Hi,

On 2021-05-27 6:53 p.m., Dan Ritter wrote:
> Polyna-Maude Racicot-Summerside wrote: 
>> Hi !
>> I'm using a camera that I access as a USB disk.
>> It appears as a FAT32 filesystem.
>> On my camera it uses the local time and timezone. It does so automatic
>> with the use of GPS / cell tower sync.
>> When I look at picture that I've just taken, they appear at a different
>> time.
>> Could this be caused by the system thinking the timestamp of my files
>> are UTC but my computer itself is local timezone ?
>> If so, is there's a way to fix this so I get see the correct time
>> displayed when I list the files ? For example to add 6 hours to this
>> filesystem timestamp ?
>>
> 
> man 8 mount says, under FAT-specific options:
> 
> tz=UTC This option disables the conversion of timestamps between
>        local time  (as  used  by Windows on FAT) and UTC (which Linux uses
>        internally).  This is particularly useful when mounting devices (like
>        digital cameras) that are set to UTC in order to  avoid the pitfalls
>        of local time.
> 
> time_offset=minutes Set  offset for conversion of timestamps from
>        local time used by FAT to UTC.  I.e., minutes will be subtracted
>        from each timestamp to convert it to UTC used internally by
>        Linux.  This is useful when the time zone set in the kernel via
>        settimeofday(2) is not the time zone used by the filesystem.
>        Note that this option still does  not provide  correct  time
>        stamps  in  all cases in presence of DST - time stamps in a
>        different DST setting will be off by one hour.
> 
> -dsr-
> 

Really big sorry to have made you lookup the man pages !
I shall have did a better look up myself.

Thanks
-- 
Polyna-Maude R.-Summerside
-Be smart, Be wise, Support opensource development

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: