time wrong on sdcard images in Ubuntu, okay on camera and Windows











up vote
2
down vote

favorite












when i take a picture and put the sdcard in my Ubuntu 18.10, the picture date is 6-hrs ago. but if i look at it in my panasonic camera, the time is correct. if i look at it in windows, the time is correct. if i try a different camera, a canon, and different sdcard, same thing, 6-hrs earlier. date and time on Ubuntu is correct. date and time on the cameras are correct. i tried formatting the sdcards. what's going on?



this picture was taken at 8:03pm, but properties says modified at 2:03pm, exif data says correctly 8:03pm.
screenshot



My time zone is CST, central.










share|improve this question
























  • What's your local time zone?
    – Kulfy
    Dec 1 at 2:40












  • CST, central. i double-checked that setting
    – ticotexas
    Dec 1 at 4:33















up vote
2
down vote

favorite












when i take a picture and put the sdcard in my Ubuntu 18.10, the picture date is 6-hrs ago. but if i look at it in my panasonic camera, the time is correct. if i look at it in windows, the time is correct. if i try a different camera, a canon, and different sdcard, same thing, 6-hrs earlier. date and time on Ubuntu is correct. date and time on the cameras are correct. i tried formatting the sdcards. what's going on?



this picture was taken at 8:03pm, but properties says modified at 2:03pm, exif data says correctly 8:03pm.
screenshot



My time zone is CST, central.










share|improve this question
























  • What's your local time zone?
    – Kulfy
    Dec 1 at 2:40












  • CST, central. i double-checked that setting
    – ticotexas
    Dec 1 at 4:33













up vote
2
down vote

favorite









up vote
2
down vote

favorite











when i take a picture and put the sdcard in my Ubuntu 18.10, the picture date is 6-hrs ago. but if i look at it in my panasonic camera, the time is correct. if i look at it in windows, the time is correct. if i try a different camera, a canon, and different sdcard, same thing, 6-hrs earlier. date and time on Ubuntu is correct. date and time on the cameras are correct. i tried formatting the sdcards. what's going on?



this picture was taken at 8:03pm, but properties says modified at 2:03pm, exif data says correctly 8:03pm.
screenshot



My time zone is CST, central.










share|improve this question















when i take a picture and put the sdcard in my Ubuntu 18.10, the picture date is 6-hrs ago. but if i look at it in my panasonic camera, the time is correct. if i look at it in windows, the time is correct. if i try a different camera, a canon, and different sdcard, same thing, 6-hrs earlier. date and time on Ubuntu is correct. date and time on the cameras are correct. i tried formatting the sdcards. what's going on?



this picture was taken at 8:03pm, but properties says modified at 2:03pm, exif data says correctly 8:03pm.
screenshot



My time zone is CST, central.







sd-card time






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 1 at 17:04









pomsky

27.7k1185111




27.7k1185111










asked Dec 1 at 2:22









ticotexas

111




111












  • What's your local time zone?
    – Kulfy
    Dec 1 at 2:40












  • CST, central. i double-checked that setting
    – ticotexas
    Dec 1 at 4:33


















  • What's your local time zone?
    – Kulfy
    Dec 1 at 2:40












  • CST, central. i double-checked that setting
    – ticotexas
    Dec 1 at 4:33
















What's your local time zone?
– Kulfy
Dec 1 at 2:40






What's your local time zone?
– Kulfy
Dec 1 at 2:40














CST, central. i double-checked that setting
– ticotexas
Dec 1 at 4:33




CST, central. i double-checked that setting
– ticotexas
Dec 1 at 4:33










1 Answer
1






active

oldest

votes

















up vote
2
down vote













The FAT filesystem does not store the timezone, and the specification does not say whether timestamps should be taken as UTC (as on any other filesystem) or as local time. Windows interprets timestamps on FAT filesystems as being in the current local timezone. Linux, by default, interprets them as UTC.



Example: The timestamp on the file says 8:03. Linux believes this to be UTC. Your local timezone is 6 hours behind (that is, west of) UTC, so Linux displays this as 2:03 local time.



Mount the filesystem with -o time_offset=-360 to tell the kernel that timestamps on the FAT filesystem are to be considered 6 hours behind UTC. See the manual page of the mount command for details.






share|improve this answer





















  • thanks, makes sense now. but the sdcard seems to automount when it is inserted. do i need to mount it again elsewhere with the time_offset each time i insert it? or is there a way to make the time_offset permanent?
    – ticotexas
    Dec 1 at 18:04










  • @ticotexas: Yep. sudo umount /dev/sdb1 && sudo mount -o uid=$(id -u),gid=$(id -g),quiet,fmask=0133,dmask=0022,time_offset=-360 /dev/sdb1 /mnt should do the trick. Replace /dev/sdb1 as needed and /mnt according to taste. If your locale has daylight saving time then when daylight saving time is in effect you may want to replace -360 with -300. Remember to sudo umount /dev/sdb1 before removing the card.
    – AlexP
    Dec 1 at 18:39













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1097568%2ftime-wrong-on-sdcard-images-in-ubuntu-okay-on-camera-and-windows%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
2
down vote













The FAT filesystem does not store the timezone, and the specification does not say whether timestamps should be taken as UTC (as on any other filesystem) or as local time. Windows interprets timestamps on FAT filesystems as being in the current local timezone. Linux, by default, interprets them as UTC.



Example: The timestamp on the file says 8:03. Linux believes this to be UTC. Your local timezone is 6 hours behind (that is, west of) UTC, so Linux displays this as 2:03 local time.



Mount the filesystem with -o time_offset=-360 to tell the kernel that timestamps on the FAT filesystem are to be considered 6 hours behind UTC. See the manual page of the mount command for details.






share|improve this answer





















  • thanks, makes sense now. but the sdcard seems to automount when it is inserted. do i need to mount it again elsewhere with the time_offset each time i insert it? or is there a way to make the time_offset permanent?
    – ticotexas
    Dec 1 at 18:04










  • @ticotexas: Yep. sudo umount /dev/sdb1 && sudo mount -o uid=$(id -u),gid=$(id -g),quiet,fmask=0133,dmask=0022,time_offset=-360 /dev/sdb1 /mnt should do the trick. Replace /dev/sdb1 as needed and /mnt according to taste. If your locale has daylight saving time then when daylight saving time is in effect you may want to replace -360 with -300. Remember to sudo umount /dev/sdb1 before removing the card.
    – AlexP
    Dec 1 at 18:39

















up vote
2
down vote













The FAT filesystem does not store the timezone, and the specification does not say whether timestamps should be taken as UTC (as on any other filesystem) or as local time. Windows interprets timestamps on FAT filesystems as being in the current local timezone. Linux, by default, interprets them as UTC.



Example: The timestamp on the file says 8:03. Linux believes this to be UTC. Your local timezone is 6 hours behind (that is, west of) UTC, so Linux displays this as 2:03 local time.



Mount the filesystem with -o time_offset=-360 to tell the kernel that timestamps on the FAT filesystem are to be considered 6 hours behind UTC. See the manual page of the mount command for details.






share|improve this answer





















  • thanks, makes sense now. but the sdcard seems to automount when it is inserted. do i need to mount it again elsewhere with the time_offset each time i insert it? or is there a way to make the time_offset permanent?
    – ticotexas
    Dec 1 at 18:04










  • @ticotexas: Yep. sudo umount /dev/sdb1 && sudo mount -o uid=$(id -u),gid=$(id -g),quiet,fmask=0133,dmask=0022,time_offset=-360 /dev/sdb1 /mnt should do the trick. Replace /dev/sdb1 as needed and /mnt according to taste. If your locale has daylight saving time then when daylight saving time is in effect you may want to replace -360 with -300. Remember to sudo umount /dev/sdb1 before removing the card.
    – AlexP
    Dec 1 at 18:39















up vote
2
down vote










up vote
2
down vote









The FAT filesystem does not store the timezone, and the specification does not say whether timestamps should be taken as UTC (as on any other filesystem) or as local time. Windows interprets timestamps on FAT filesystems as being in the current local timezone. Linux, by default, interprets them as UTC.



Example: The timestamp on the file says 8:03. Linux believes this to be UTC. Your local timezone is 6 hours behind (that is, west of) UTC, so Linux displays this as 2:03 local time.



Mount the filesystem with -o time_offset=-360 to tell the kernel that timestamps on the FAT filesystem are to be considered 6 hours behind UTC. See the manual page of the mount command for details.






share|improve this answer












The FAT filesystem does not store the timezone, and the specification does not say whether timestamps should be taken as UTC (as on any other filesystem) or as local time. Windows interprets timestamps on FAT filesystems as being in the current local timezone. Linux, by default, interprets them as UTC.



Example: The timestamp on the file says 8:03. Linux believes this to be UTC. Your local timezone is 6 hours behind (that is, west of) UTC, so Linux displays this as 2:03 local time.



Mount the filesystem with -o time_offset=-360 to tell the kernel that timestamps on the FAT filesystem are to be considered 6 hours behind UTC. See the manual page of the mount command for details.







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 1 at 5:44









AlexP

7,34711228




7,34711228












  • thanks, makes sense now. but the sdcard seems to automount when it is inserted. do i need to mount it again elsewhere with the time_offset each time i insert it? or is there a way to make the time_offset permanent?
    – ticotexas
    Dec 1 at 18:04










  • @ticotexas: Yep. sudo umount /dev/sdb1 && sudo mount -o uid=$(id -u),gid=$(id -g),quiet,fmask=0133,dmask=0022,time_offset=-360 /dev/sdb1 /mnt should do the trick. Replace /dev/sdb1 as needed and /mnt according to taste. If your locale has daylight saving time then when daylight saving time is in effect you may want to replace -360 with -300. Remember to sudo umount /dev/sdb1 before removing the card.
    – AlexP
    Dec 1 at 18:39




















  • thanks, makes sense now. but the sdcard seems to automount when it is inserted. do i need to mount it again elsewhere with the time_offset each time i insert it? or is there a way to make the time_offset permanent?
    – ticotexas
    Dec 1 at 18:04










  • @ticotexas: Yep. sudo umount /dev/sdb1 && sudo mount -o uid=$(id -u),gid=$(id -g),quiet,fmask=0133,dmask=0022,time_offset=-360 /dev/sdb1 /mnt should do the trick. Replace /dev/sdb1 as needed and /mnt according to taste. If your locale has daylight saving time then when daylight saving time is in effect you may want to replace -360 with -300. Remember to sudo umount /dev/sdb1 before removing the card.
    – AlexP
    Dec 1 at 18:39


















thanks, makes sense now. but the sdcard seems to automount when it is inserted. do i need to mount it again elsewhere with the time_offset each time i insert it? or is there a way to make the time_offset permanent?
– ticotexas
Dec 1 at 18:04




thanks, makes sense now. but the sdcard seems to automount when it is inserted. do i need to mount it again elsewhere with the time_offset each time i insert it? or is there a way to make the time_offset permanent?
– ticotexas
Dec 1 at 18:04












@ticotexas: Yep. sudo umount /dev/sdb1 && sudo mount -o uid=$(id -u),gid=$(id -g),quiet,fmask=0133,dmask=0022,time_offset=-360 /dev/sdb1 /mnt should do the trick. Replace /dev/sdb1 as needed and /mnt according to taste. If your locale has daylight saving time then when daylight saving time is in effect you may want to replace -360 with -300. Remember to sudo umount /dev/sdb1 before removing the card.
– AlexP
Dec 1 at 18:39






@ticotexas: Yep. sudo umount /dev/sdb1 && sudo mount -o uid=$(id -u),gid=$(id -g),quiet,fmask=0133,dmask=0022,time_offset=-360 /dev/sdb1 /mnt should do the trick. Replace /dev/sdb1 as needed and /mnt according to taste. If your locale has daylight saving time then when daylight saving time is in effect you may want to replace -360 with -300. Remember to sudo umount /dev/sdb1 before removing the card.
– AlexP
Dec 1 at 18:39




















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1097568%2ftime-wrong-on-sdcard-images-in-ubuntu-okay-on-camera-and-windows%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

Eduardo VII do Reino Unido