Skip to content

Instantly share code, notes, and snippets.

@DmitryMyadzelets
Last active August 29, 2015 14:23
Show Gist options
  • Save DmitryMyadzelets/9ffb7b5f3f36254dbe8b to your computer and use it in GitHub Desktop.
Save DmitryMyadzelets/9ffb7b5f3f36254dbe8b to your computer and use it in GitHub Desktop.
How to change photo's date for Google Photos

How to add or change a photo's date for Google Photos

Problem

When you upload a photo it might happen the photo appears on the timeline at the date you uploaded it, not at the date it was actually taken. It means the photo lacks the Exif date information for some reason: it was digitized, removed by a photo editor etc.

Solution

Use an Exif manipulation tool. I've got exiv2 for Linux.

To see what information the photo file includes:

exiv2 -pt filename

The date the image was taken should be stored in Exif.Photo.DateTimeOriginal field. Add this info if there is no any:

exiv2 -M"add Exif.Photo.DateTimeOriginal 2004:03:01 00:00:00" filename

Or change the date and time:

exiv2 -M"set Exif.Photo.DateTimeOriginal 2004:03:01 00:00:00" filename

Read exiv2 manual for more information.

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