Created
August 8, 2016 16:45
-
-
Save reox/4e0f7d80c58bf09bb6f37df4894aa2e1 to your computer and use it in GitHub Desktop.
Set the Time on a Canon Camera with gphoto2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is very simple but I always forget it... | |
| gphoto2 --set-config datetime=$(date +%s) |
Author
This does not work on my camera, Canon PowerShot SX1 IS : it sets the time and date to all zeros . The correct command is
gphoto2 --set-config /main/settings/datetime=now
possibly something in gphoto2 has changed or there are differences in firmware. I did that for a 5Dmkii.
thanks for reporting!
Several years ago, it worked with my Canon EOS 350D and this command - I haven't used it for a while:
gphoto2 --set-config datetime=$(date +%s)
Now, it doesn't work anymore. Even
gphoto2 --set-config /main/settings/datetime=now
is not working.
But this command works for me:
gphoto2 --set-config syncdatetime=1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This does not work on my camera, Canon PowerShot SX1 IS : it sets the time and date to all zeros . The correct command is