[opensuse] memory card, vfat and file dates
Hello: I use an SD card in my digital camera. When I mount the card in openSUSE (through a memory card reader) the creation dates of the files has a one hour shift compared to the real creation dates. For example for a photo taken at 18:30, the file creation date shown is openSUSE is 19:30. I use KDE 3.5.10 that mounts the card automatically as /media/disk. I changed the mount option from "winnt" to "windows95" but it did not changed creation time. How could I get the real creation time instead of the shifted one in openSUSE? Thanks in advance, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Istvan Gabor said the following on 12/03/2012 12:22 PM:
Hello:
I use an SD card in my digital camera. When I mount the card in openSUSE (through a memory card reader) the creation dates of the files has a one hour shift compared to the real creation dates. For example for a photo taken at 18:30, the file creation date shown is openSUSE is 19:30. I use KDE 3.5.10 that mounts the card automatically as /media/disk. I changed the mount option from "winnt" to "windows95" but it did not changed creation time.
How could I get the real creation time instead of the shifted one in openSUSE?
When were the photographs taken? Does you camera automatically deal with the shift from summer time to winter time, whatever the acronyms are in your country? My camera doesn't. When did you set the time on your camera? Its 13:16 here in Toronto as I type but my camera, which I last set up and used in the summer, thinks its 14:16. Recall: *NIX uses a basic time and the time display routines do "locale". The SD card is the old DOS format and doesn't have that sophistication. Or is that all backwards .... -- We are born naked, wet and hungry. Then things get worse. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
2012. december 3. 19:25 napon Anton Aylward <opensuse@antonaylward.com> írta: Anton, thanks for your reply.
Istvan Gabor said the following on 12/03/2012 12:22 PM:
Hello:
I use an SD card in my digital camera. When I mount the card in openSUSE (through a memory card reader) the creation dates of the files has a one hour shift compared to the real creation dates. For example for a photo taken at 18:30, the file creation date shown is openSUSE is 19:30. I use KDE 3.5.10 that mounts the card automatically as /media/disk. I changed the mount option from "winnt" to "windows95" but it did not changed creation time.
How could I get the real creation time instead of the shifted one in openSUSE?
When were the photographs taken?
The photos were taken last summer.
Does you camera automatically deal with the shift from summer time to winter time, whatever the acronyms are in your country? My camera doesn't. When did you set the time on your camera?
I am not sure but I think there is no summer/winter time option in the camera, I could not find such a setting at least. The photos' metainfo show the correct time which is one hour less than the time indicated as creation time. If the creation time was corrected for the summer time it should be one hour less, since eg. 18:30 in summer is actually 17:30 in winter time. Is this correct? Furthermore, I suppose if the camera's time was the culprit, the photos' metainfo would also show the incorrect time, the same as the files's creation time.
Its 13:16 here in Toronto as I type but my camera, which I last set up and used in the summer, thinks its 14:16.
Recall: *NIX uses a basic time and the time display routines do "locale". The SD card is the old DOS format and doesn't have that sophistication.
Or is that all backwards ....
I checked the camera again. It was set to current winter time. I took a photo, mounted the card, and the creation time IS correct. Creation time equals to the time in the metainfo. Then I set the camera's time back to a summer date (Aug. 15. 18:30). Took another photo, mounted the card, and the creation date of this photo is 19:30 (which is incorrect), and the metainfo shows 18:30 (correct). It it possible the the OS interprets the time differently according to whether it indicates summer or winter? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, On Mon, 03 Dec 2012, Istvan Gabor wrote:
Istvan Gabor said the following on 12/03/2012 12:22 PM:
I use an SD card in my digital camera. When I mount the card in openSUSE (through a memory card reader) the creation dates of the files has a one hour shift compared to the real creation dates. For example for a photo taken at 18:30, the file creation date shown is openSUSE is 19:30. I use KDE 3.5.10 that mounts the card automatically as /media/disk. I changed the mount option from "winnt" to "windows95" but it did not changed creation time.
How could I get the real creation time instead of the shifted one in openSUSE?
[..] I am not sure but I think there is no summer/winter time option in
2012. december 3. 19:25 napon Anton Aylward <opensuse@antonaylward.com> írta: the camera, I could not find such a setting at least. [..] Then I set the camera's time back to a summer date (Aug. 15. 18:30). Took another photo, mounted the card, and the creation date of this photo is 19:30 (which is incorrect), and the metainfo shows 18:30 (correct).
It it possible the the OS interprets the time differently according to whether it indicates summer or winter?
Seems that not Summertime is implemented in the camera. Try mounting with the option "tz=UTC-1". If that works use a label, id or UUID to fix that option in your fstab, e.g.: /dev/disk/by-id/usb-USB_2.0_USB...-part1 /your/mountpoint vfat \ defaults,user,users,iocharset=utf8,noauto,tz=UTC-1 0 0 HTH, -dnh -- The more stupid the rules, the more fun one can have by following them _exactly_ to the letter. -- Alexander Schreiber -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
2012. december 5. 20:10 napon David Haller <dnh@opensuse.org> írta:
Hello,
On Mon, 03 Dec 2012, Istvan Gabor wrote:
Istvan Gabor said the following on 12/03/2012 12:22 PM:
I use an SD card in my digital camera. When I mount the card in openSUSE (through a memory card reader) the creation dates of the files has a one hour shift compared to the real creation dates. For example for a photo taken at 18:30, the file creation date shown is openSUSE is 19:30. I use KDE 3.5.10 that mounts the card automatically as /media/disk. I changed the mount option from "winnt" to "windows95" but it did not changed creation time.
How could I get the real creation time instead of the shifted one in openSUSE?
[..] I am not sure but I think there is no summer/winter time option in
2012. december 3. 19:25 napon Anton Aylward <opensuse@antonaylward.com> írta: the camera, I could not find such a setting at least. [..] Then I set the camera's time back to a summer date (Aug. 15. 18:30). Took another photo, mounted the card, and the creation date of this photo is 19:30 (which is incorrect), and the metainfo shows 18:30 (correct).
It it possible the the OS interprets the time differently according to whether it indicates summer or winter?
Thank you David.
Seems that not Summertime is implemented in the camera. Try mounting with the option "tz=UTC-1". If that works use a label, id or UUID to fix that option in your fstab, e.g.:
Unfortunately my mount command gives error message if I use this option: # mount /dev/sdc1 /mnt1 -o tz=UTC-1 mount: wrong fs type, bad option, bad superblock on /dev/sdc1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so It takes option tz=UTC: # mount /dev/sdc1 /mnt1 -o tz=UTC but in this case the file time stamps are shifted +2 hours instead of +1 hour (without the tz=UTC option). I googled a little bit more than before and found others had the same problem: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/612292 David where did you get tz=UTC-1 option from? My mount man page only mentions tz=UTC. Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, On Thu, 06 Dec 2012, Istvan Gabor wrote:
2012. december 5. 20:10 napon David Haller <dnh@opensuse.org> írta:
Seems that not Summertime is implemented in the camera. Try mounting with the option "tz=UTC-1". If that works use a label, id or UUID to fix that option in your fstab, e.g.:
Unfortunately my mount command gives error message if I use this option:
# mount /dev/sdc1 /mnt1 -o tz=UTC-1 mount: wrong fs type, bad option, bad superblock on /dev/sdc1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so
It takes option tz=UTC:
Hm. With a test-fsimage, I can't see any difference, whether I mount with or without tz=UTC.
David where did you get tz=UTC-1 option from? My mount man page only mentions tz=UTC.
So it does, but I thought it might take other timezones as well (and with 'date' TZ=UTC+1 / -1 etc. work. -dnh -- Don't take life too seriously, you ain't getting out alive anyway... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Anton Aylward
-
David Haller
-
Istvan Gabor