LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-31-2015, 06:18 AM   #1
mike acker
Member
 
Registered: Feb 2014
Location: Michigan
Distribution: LMDE MINT AMD 64
Posts: 62

Rep: Reputation: Disabled
Camera tether -- error correcting time


if I tether my camera to my 'Nix box the Nix box subtracts 4 hours from the time on the images as they are transferred

e.g if the time on the chip -- and in the EXIF -- is 1307 -- when the image is stored in 'Nix it is changed to 0907

the EXIF data is not changed; only the time on the file directory entry
Code:
Tether:

-rw-r--r-- 1 mike mike 11235586 2015-10-29 09:07:14.000000000 -0400 VM2A3123.JPG
it appears the 'Nix box (LMDE2/Debian) *thinks* the camera data is at UTC -- and attempts to correct it to local time

any clues on correcting this ?

if i read the camera chip directly instead of using the tether the times all come across correct.

Last edited by mike acker; 10-31-2015 at 06:20 AM.
 
Old 10-31-2015, 11:32 AM   #2
mike acker
Member
 
Registered: Feb 2014
Location: Michigan
Distribution: LMDE MINT AMD 64
Posts: 62

Original Poster
Rep: Reputation: Disabled
script for fixing files in a directory

Code:
#!/bin/sh
#
# reset jpeg file by 4 hours
#
echo "correct *.JPG time stamps.   Enter hours, e.g. +4 for UTC to EDT"
read hrs_adj
echo "Adjustment will be " $hrs_adj " hours. "

read -p "Enter name of directory to be corrected" directory_name

echo "Directory name: " $directory_name

 for file_nm in "$directory_name"/*.JPG
  do
    echo "File name to touch: " "$file_nm"  
    # to increment time stamp relative to subject file
    touch -r "$file_nm" -d " $hrs_adj hour " "$file_nm"
  done
  
  echo "Corrected Directory:"
  ls -l "$directory_name"

echo "done"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Raspberry Pi time-lapse camera LXer Syndicated Linux News 0 10-17-2014 03:42 AM
Hi, Please help with correcting this error in Linux Operating System Aiswariya Linux - Newbie 1 10-05-2012 07:31 AM
[SOLVED] Error-correcting filesystem for use with DVDs? russ00 Linux - General 7 06-21-2010 07:06 PM
LXer: Correcting the Autopano-Sift Hugin Error in 8.10 LXer Syndicated Linux News 0 02-17-2009 05:30 PM
ntpd not correcting local time plythgam Linux - Software 1 08-16-2004 05:12 PM


All times are GMT -5. The time now is 11:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration