Use 'touch' to add 5 hours to all file dates

I have a Canon 70D digital camera and the time is set correctly and the timezone is set to UTC -5:00 which is New York time. For some reason when I copied the files to Linux, an additional 5 hours was subtracted from the file modified time and now all of the files I pulled from the camera show a modified date that is 5 hours too early (they are all now UTC -10:00). I verified that this does not happen when I copy the files from the camera SD card to a Windows directory. For some reason this problem does not occur on Windows. Is there I way I can use ‘touch’ to add 5 hours back to the modified date on these files so they will now be correct?

This works:

#!/bin/sh
for i in folder_path/*; do
 touch -r "$i" -d '+5 hour' "$i"
done
3 Likes