Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #235601 > unrolled thread
| Started by | Polyna-Maude Racicot-Summerside <debian@polynamaude.com> |
|---|---|
| First post | 2021-05-28 00:50 +0200 |
| Last post | 2021-05-28 01:00 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.debian.user
Timezone Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-05-28 00:50 +0200
Re: Timezone Dan Ritter <dsr@randomstring.org> - 2021-05-28 01:00 +0200
Re: Timezone Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-05-28 01:00 +0200
| From | Polyna-Maude Racicot-Summerside <debian@polynamaude.com> |
|---|---|
| Date | 2021-05-28 00:50 +0200 |
| Subject | Timezone |
| Message-ID | <CjwZb-53R-3@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
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 ? -- Polyna-Maude R.-Summerside -Be smart, Be wise, Support opensource development
[toc] | [next] | [standalone]
| From | Dan Ritter <dsr@randomstring.org> |
|---|---|
| Date | 2021-05-28 01:00 +0200 |
| Message-ID | <Cjx8R-57f-3@gated-at.bofh.it> |
| In reply to | #235601 |
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-
[toc] | [prev] | [next] | [standalone]
| From | Polyna-Maude Racicot-Summerside <debian@polynamaude.com> |
|---|---|
| Date | 2021-05-28 01:00 +0200 |
| Message-ID | <Cjx8R-57f-5@gated-at.bofh.it> |
| In reply to | #235602 |
[Multipart message — attachments visible in raw view] — view raw
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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web