Test your camera by running: When gphoto2 queries the camera for date and time, it will return a unix epoch time, which does not contain timezone or daylight savings information.Some cameras can compensate for daylight savings, but may still return standard time when queried (like the Nikon D5000).gphoto2 will use the current system timezone to adjust the camera’s epoch (aka “Current”) to local time to create the “Printable” output: Here’s a simple Bash script that will set the current system time to match the current camera time: Make the script executable (chmod +x camdate.sh) and add it to /etc/rc.local to run it at boot time.
Raspberry Pi boards don’t have real-time clocks (RTC) on board.
When the board is powered-off, time stands still, meaning if you power off your Pi at and reboot it an hour later, the time will read instead of .
gphoto2 is a popular Linux tool for controlling cameras over USB, and lots of people are building projects that use a Raspberry Pi, gphoto2, and a digital camera.
gphoto2 cameras that support remote control and either the “All” or “Date Time” features can be used.
Network-connected Raspberry Pis can use the Network Time Protocol (NTP) to set the correct system time when the board boots, but not all Raspberry Pis use network connections.Unlike the Raspberry Pi (which omitted the RTC to save cost and power), many electronic gadgets that interface with a Raspberry Pi do contain clocks, like cameras and GPS units.