Skip to content

Instantly share code, notes, and snippets.

@reox
Created August 8, 2016 16:45
Show Gist options
  • Save reox/4e0f7d80c58bf09bb6f37df4894aa2e1 to your computer and use it in GitHub Desktop.
Save reox/4e0f7d80c58bf09bb6f37df4894aa2e1 to your computer and use it in GitHub Desktop.
Set the Time on a Canon Camera with gphoto2
# This is very simple but I always forget it...
gphoto2 --set-config datetime=$(date +%s)
@mennucc
Copy link

mennucc commented Jun 24, 2024

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

@reox
Copy link
Author

reox commented Jun 24, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment