Answers.Body: <p>Assuming that the timestamp shows the exact same value for both the images and video, then that is the source of the problem.  Video timestamps in MP4/Mov files is supposed to be set to UTC.  Image files, on the other hand, are assumed to have the time set to the local time where the image was taken.</p>
  <p>Google Photos (as well as Windows and Mac) understand that the timestamp for video files is in UTC and will adjust it to the local time when displayed.  Side note, Adobe programs such as Photoshop/Lightroom, do not properly adjust the time in video files.</p>
  <p>For MP4/Mov files, <a href="https://exiftool.org/" rel="nofollow noreferrer">Exiftool</a> would be better for adjusting the timestamp, as it will not remove any GoPro specific metadata, such as any GPS tracks.  You could use a command like this to subtract two hours from the video's main timestamps<br />
  <code>exiftool -CreateDate-=2 -ModifyDate-=2 /path/to/files/</code></p>
  <p>There might be other timestamps in the file, such as stream specific timestamps.  If you wish to adjust all the timestamps, you could use<br />
  <code>exiftool -Time:All-=2 /path/to/files/</code></p>
  <p>This command creates backup files.  Add <a href="https://exiftool.org/exiftool_pod.html#overwrite_original" rel="nofollow noreferrer"><code>-overwrite_original</code></a> to suppress the creation of backup files.  Add <a href="https://ExifTool.org/exiftool_pod.html#r-.--recurse" rel="nofollow noreferrer"><code>-r</code></a> to recurse into subdirectories.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-09T04:11:08.177Z
Answers.LastActivityDate: 2021-06-09T04:11:08.177Z
Answers.UserDisplayName: StarGeek
Body: <p>If I take a video and a photo at the same time (both also have GPS tags in metadata, BTW) and upload them on Google Photos, the video will be wrongly sorted in the album because its creation time is thought to be  +2 hours GMT. in Mediainfo.exe the creation date is correct (in UTC) and same as in the EXIF of the photo.</p>
  <p>If I convert it with ffmpeg with -map_metadata 0 the problem persists.</p>
  <p>Does it makes sense to raise a bug for Google Photos or GoPro or it's something I am doing wrong? (I did a whole lot of research but did not find anyone struggling to find a fix for exactly this issue)</p>
  <p>Is there a ffmpeg parameter to <strong>shift the creation_time back 2 hours</strong> so my album is aligned?</p>
  <p>something like this bat file would suffice</p>
  <pre><code>c:\gopro\ffmpeg&quot; -i %1 -vcodec copy -acodec copy -metadata creation_time=&quot;+02:00:00&quot; &quot;%~n1.remux.mp4
  </code></pre>
  <p>i also found about mp4box but did not find such option in command line / bat file</p>
  <p>my research that did not help <a href="https://community.gopro.com/t5/Cameras/Time-zone-set-incorrectly/td-p/265136" rel="nofollow noreferrer">1</a> <a href="https://video.stackexchange.com/questions/25568/what-is-the-correct-format-of-media-creation-time">2</a> <a href="https://exiftool.org/forum/index.php?topic=8756.0" rel="nofollow noreferrer">3</a> <a href="https://stackoverflow.com/questions/31541489/ffmpeg-get-creation-and-or-modification-date/31544668#31544668">4</a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-06-09T01:12:39.870Z
Comments.Text: Just to verify, the time that MediaInfo shows for the mp4 is the **exact** same time as in the jpg?  So for example, both the mp4 and the jpg would show 2021:06:08 12:00:00 ?
Comments.UserDisplayName: StarGeek
Tags: <ffmpeg><metadata>
Title: GoPro creation metadata on Google Photos different for photos and videos (timezone offset?)
UserDisplayName: teaspoon
ThreadText: # GoPro creation metadata on Google Photos different for photos and videos (timezone offset?)
  
  (Asked by: username_0 on 2021-06-08)
  
  If I take a video and a photo at the same time (both also have GPS tags in metadata, BTW) and upload them on Google Photos, the video will be wrongly sorted in the album because its creation time is thought to be +2 hours GMT. in Mediainfo.exe the creation date is correct (in UTC) and same as in the EXIF of the photo.
  
  If I convert it with ffmpeg with -map\_metadata 0 the problem persists.
  
  Does it makes sense to raise a bug for Google Photos or GoPro or it's something I am doing wrong? (I did a whole lot of research but did not find anyone struggling to find a fix for exactly this issue)
  
  Is there a ffmpeg parameter to **shift the creation\_time back 2 hours** so my album is aligned?
  
  something like this bat file would suffice
  
  ```
  c:\gopro\ffmpeg" -i %1 -vcodec copy -acodec copy -metadata creation_time="+02:00:00" "%~n1.remux.mp4
  
  ```
  
  i also found about mp4box but did not find such option in command line / bat file
  
  my research that did not help [1](https://community.gopro.com/t5/Cameras/Time-zone-set-incorrectly/td-p/265136) [2](https://video.stackexchange.com/questions/25568/what-is-the-correct-format-of-media-creation-time) [3](https://exiftool.org/forum/index.php?topic=8756.0) [4](https://stackoverflow.com/questions/31541489/ffmpeg-get-creation-and-or-modification-date/31544668#31544668)
  
  **Tags:** ffmpeg, metadata
  
  > **Comments:**
  > **username_1**: Just to verify, the time that MediaInfo shows for the mp4 is the **exact** same time as in the jpg?  So for example, both the mp4 and the jpg would show 2021:06:08 12:00:00 ?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-06-09. Score: 1
  
  Assuming that the timestamp shows the exact same value for both the images and video, then that is the source of the problem. Video timestamps in MP4/Mov files is supposed to be set to UTC. Image files, on the other hand, are assumed to have the time set to the local time where the image was taken.
  
  Google Photos (as well as Windows and Mac) understand that the timestamp for video files is in UTC and will adjust it to the local time when displayed. Side note, Adobe programs such as Photoshop/Lightroom, do not properly adjust the time in video files.
  
  For MP4/Mov files, [Exiftool](https://exiftool.org/) would be better for adjusting the timestamp, as it will not remove any GoPro specific metadata, such as any GPS tracks. You could use a command like this to subtract two hours from the video's main timestamps  
  `exiftool -CreateDate-=2 -ModifyDate-=2 /path/to/files/`
  
  There might be other timestamps in the file, such as stream specific timestamps. If you wish to adjust all the timestamps, you could use  
  `exiftool -Time:All-=2 /path/to/files/`
  
  This command creates backup files. Add [`-overwrite_original`](https://exiftool.org/exiftool_pod.html#overwrite_original) to suppress the creation of backup files. Add [`-r`](https://ExifTool.org/exiftool_pod.html#r-.--recurse) to recurse into subdirectories.
  
  
  ---
  
  