# Fixing the date with GPS time - for beginners

**URL:** https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762
**Category:** Command line tools
**Created:** [January 23, 2022, 12:56pm UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762 "2022-01-23T12:56:46Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![joostjakob](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/joostjakob/32/68276_2.png) [@joostjakob](https://forum.mapillary.com/u/joostjakob)
#### Post date: [January 23, 2022, 12:56pm UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/1 "2022-01-23T12:56:46Z")

</div>

Hi,  
Many devices have the tendency to reset their date/time when they lose power for a moment. If you’re not careful, your device will save the pictures as if they were made in 2016. I didn’t find any step by step guide on how to fix this, so I’ll share the steps here.

The gist of it is that you change the original date with a date close to the GPS date/time. For some reason, Mapillary seems to consume metadata dates in this order: DateTime Original \> DateTime Digitized \> Modify Date \> GPS Date/Time  
Why the GPS date is taken last is beyond me, as I’d think that is correct by definition.

Anyway, here goes:

1. Download exiftool  
You can download from [exiftool.org](http://exiftool.org), but since I was on a work PC, I used the portable version available at [Oliver Betz | Artikel / ExifTool Windows installer and portable package](https://oliverbetz.de/pages/Artikel/ExifTool-for-Windows)  
Unzip the file in a folder like C:\whereever-you-like\exif tool\

2. Open a command prompt (hit windows button and start typing “prompt”). Move the active directory by typing:

`cd C:\whereever-you-like\exif tool\`

(you can paste in the prompt by simply right clicking. You can access previous commands by pushing the “up” key)

1. See if things work  
For example, let’s start the tool and use it to read the exif data from a single image:

`exiftool.exe "g:\mapillary\2016\104GOPRO\G0065843.jpg"`

(note: if you actually installed the exiftool, you won’t need to change the directory to the correct place and can just type exiftool, without the .exe)

_Part below edited based on the tip of masterofnoroad._

1. Try it out to fix one image  
The tool won’t just overwrite DateTimeOriginal. So first we empty it.

```auto
exiftool -DateTimeOriginal= "G:\test\testimage.jpg"
exiftool "-*Date<FileCreateDate" "G:\test\testimage.jpg"

```

(Make sure FileCreateDate is correct. In my test image, GPSDateTime was missing. But if you have that data, that’s probably preferred!)

Note that this comment saves a backup of the original image. If you’re satisfied with the result, we can do this in bulk.

1. Fix everything in a single folder:

```auto
exiftool -DateTimeOriginal= "G:\mapillary\202207 ijsland deel 1"
exiftool "-*Date<FileCreateDate" "G:\mapillary\202207 ijsland deel 1"

```

Note: make sure to not have a \ at the end of the folder description.  
If you want to do this for a folder with a bunch of subfolders, add `-r`  
If you do this on a large folder, you’ll have a huge amount of backups to take care of. To avoid that, you can add `-overwrite_original` to your command.

---

<div class="post-metadata">

### Author: ![eserte](https://avatars.discourse-cdn.com/v4/letter/e/67e7ee/32.png) [@eserte](https://forum.mapillary.com/u/eserte)
#### Post date: [January 23, 2022, 1:33pm UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/2 "2022-01-23T13:33:40Z")

</div>

> [@joostjakob](#):
>
> Why the GPS date is taken last is beyond me, as I’d think that is correct by definition.

Please, Mapillary devs, can you change the order as suggested?

---

<div class="post-metadata">

### Author: ![masterofnoroad](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/masterofnoroad/32/70694_2.png) [@masterofnoroad](https://forum.mapillary.com/u/masterofnoroad)
#### Post date: [January 25, 2022, 7:30am UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/3 "2022-01-25T07:30:59Z")

</div>

My problem for some time is a bug in GoPro timestamp. Long story short GoPro all date and time tags are totally unreliable (like minutes value staying and only seconds change and then well into the next minute updating its value)  
Only the GPSDateTime is reliable. The sequences look like this:

> **[Mapillary](https://www.mapillary.com/app/?pKey=272603988129153)**
>
> Mapillary is the street-level imagery platform that scales and automates mapping using collaboration, cameras, and computer vision.

My resolution is to do it in two stages, as you wrote exiftool wont just overwrite DateTimeOriginal.  
So first to delete it and then to write all tags with “date” in the name with value from GPSDateTime. Maybe not elegant but works for me.

exiftool -DateTimeOriginal= 103GOPRO/  
exiftool “-\*Date\<GPSDateTime” 103GOPRO/

---

<div class="post-metadata">

### Author: ![joostjakob](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/joostjakob/32/68276_2.png) [@joostjakob](https://forum.mapillary.com/u/joostjakob)
#### Post date: [February 2, 2022, 8:20am UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/4 "2022-02-02T08:20:58Z")

</div>

Thanks a lot masterofnoroad, your comment is exactly why I posted this here.

---

<div class="post-metadata">

### Author: ![boris](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/boris/32/71767_2.png) [@boris](https://forum.mapillary.com/u/boris)
#### Post date: [December 21, 2022, 3:33am UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/5 "2022-12-21T03:33:08Z")

</div>

Thank you Joost! We are going to resolve this issue and treat GPS time as the source of truth rather than camera time going forward. @tao will have an update when this fix is incorporated into mapillary\_tools and the desktop uploader.

---

<div class="post-metadata">

### Author: ![StephaneP](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@StephaneP](https://forum.mapillary.com/u/StephaneP)
#### Post date: [December 23, 2022, 8:45am UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/6 "2022-12-23T08:45:36Z")

</div>

A small warning on using GPS date/time:

- GPS time isn’t local time, but UTC time or GPS time ( with some leap seconds)
- The exif GPS date/time metadata usually doesn’t include milliseconds, but it’s possible with DateTimeOriginal + SubSecTimeOriginal tags

---

<div class="post-metadata">

### Author: ![ursus](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/ursus/32/72863_2.png) [@ursus](https://forum.mapillary.com/u/ursus)
#### Post date: [October 13, 2025, 8:44am UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/7 "2025-10-13T08:44:49Z")

</div>

I’m currently facing this issue. My GoPro Hero7 reset date to 2016 01.  
For JPG files I was able to change the date with IrfanView with no problem, but I also accidently recorded few video files, how to change the date for them?  
@boris Also I’ve noticed some already uploaded sequences from my friend with with year 2016, but shot not long ago. So I’m wondering wouldn’t it be possible to add some new button like “Change date of entire sequence“ and maybe allow to do that only once, so that users would not overload server with such requests?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/mapillary/original/3X/c/3/c33ec32a706fc03c517f38ca662c41ece57ac4bf.png)

---

<div class="post-metadata">

### Author: ![boris](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/boris/32/71767_2.png) [@boris](https://forum.mapillary.com/u/boris)
#### Post date: [October 20, 2025, 1:10pm UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/8 "2025-10-20T13:10:59Z")

</div>

@ursus - unfortunately we don’t have a button like that. In order to fix this you would need to change the timestamp on the video (probably just renaming it should be sufficient) and then re-upload it. After you’ve confirmed the timestamp is correct you can “Delete entire sequence” on the old incorrect one.

---

<div class="post-metadata">

### Author: ![ursus](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/ursus/32/72863_2.png) [@ursus](https://forum.mapillary.com/u/ursus)
#### Post date: [October 20, 2025, 1:28pm UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/9 "2025-10-20T13:28:06Z")

</div>

> [@boris](#):
>
> probably just renaming it should be sufficient

Thank you for reply! It’s first time I hear of sequence date taken from filename? Or “renaming” means setting video timestamp?

---

<div class="post-metadata">

### Author: ![boris](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/boris/32/71767_2.png) [@boris](https://forum.mapillary.com/u/boris)
#### Post date: [October 22, 2025, 11:57am UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/10 "2025-10-22T11:57:41Z")

</div>

@ursus - ah right, I think that will not be sufficient for videos. I think as a workaround you can do the following:

1. extract a .gpx from the GoPro video using something like exiftool (example command):  
exiftool -p /usr/local/bin/gpx.fmt -ee3 -api largefilesupport=1 “sample.mp4” \> out.gpx

2. open the .gpx in a text editor and look at the timestamps. Do a search → replace to replace the incorrect date with the correct date.

3. upload the file together with the new .gpx in the desktop uploader (using the 3 dot overlow menu next to the video file to select the corrected .gpx file)

We’ll fix this in the future by using the GPS time in the video, but unfortunately that fix has not landed yet. cc: @tao

---

<div class="post-metadata">

### Author: ![ursus](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/ursus/32/72863_2.png) [@ursus](https://forum.mapillary.com/u/ursus)
#### Post date: [December 24, 2025, 6:40pm UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/11 "2025-12-24T18:40:16Z")

</div>

@boris thank you for tips! Took me sometime to the file with incorrect date.  
The “out.gpx“ produced by exiftool has correct time stamps in my case! After uploading as described on “step 3” I now see Mapillary has that sequence with wrong date (gpx timestamps are ignored).

---

<div class="post-metadata">

### Author: ![boris](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/boris/32/71767_2.png) [@boris](https://forum.mapillary.com/u/boris)
#### Post date: [December 24, 2025, 6:57pm UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/12 "2025-12-24T18:57:40Z")

</div>

Interesting - @ursus would you mind sharing the original video file and a link to the Mapillary sequence so we can investigate? (feel free to DM me if you don’t want to share it publicly)

---

<div class="post-metadata">

### Author: ![ursus](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/ursus/32/72863_2.png) [@ursus](https://forum.mapillary.com/u/ursus)
#### Post date: [December 25, 2025, 7:18am UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/13 "2025-12-25T07:18:43Z")

</div>

@boris Thank you for quick reply! I have rechecked the videos and I believe it was my fault that I used video\_2.gpx on video\_1.mp4 file. But now I have another question: It looks like video\_1.mp4 data and as a results video\_1.gpx have corrupted gps track ([I have attached files](https://drive.google.com/drive/folders/1RUwtIB822uUtyOhJ06k9jvs0xfZrffjw?usp=drive_link)). How will Mapillary act? It will still process and use the corrupted data, right? I have car tracker and I want to try to extract gps from it and then reupload video\_1.mp4 again.

---

<div class="post-metadata">

### Author: ![ursus](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/ursus/32/72863_2.png) [@ursus](https://forum.mapillary.com/u/ursus)
#### Post date: [December 25, 2025, 12:10pm UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/14 "2025-12-25T12:10:45Z")

</div>

@boris I think the problem I described initially still exists. Video\_2 had both correct. gpx track and timestamps, but on Mapillary date is wrong. I have shared video\_2.mp4 file. Here is the Mapillary sequence:

> **[Mapillary](https://www.mapillary.com/app/user/ursus?lat=57.11749102612745&lng=24.64089822434414&z=15.975231075217886&pKey=1441513174209042&all_coverage=false)**
>
> Street-level imagery, powered by collaboration and computer vision.

---

<div class="post-metadata">

### Author: ![ursus](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/ursus/32/72863_2.png) [@ursus](https://forum.mapillary.com/u/ursus)
#### Post date: [March 24, 2026, 10:15am UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/15 "2026-03-24T10:15:04Z")

</div>

@boris any updates?

---

<div class="post-metadata">

### Author: ![boris](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/boris/32/71767_2.png) [@boris](https://forum.mapillary.com/u/boris)
#### Post date: [March 25, 2026, 8:45am UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/16 "2026-03-25T08:45:52Z")

</div>

Yes, we have updated mapillary\_tools to always use the video GPS timestamps, if you update to the latest mapillary\_tools that fix should now be incorporated. @nikola can you comment on when we’ll have a desktop uploader release out with this fix?

---

<div class="post-metadata">

### Author: ![boris](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/boris/32/71767_2.png) [@boris](https://forum.mapillary.com/u/boris)
#### Post date: [May 7, 2026, 12:25pm UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/17 "2026-05-07T12:25:31Z")

</div>

update: this is now available in the latest Mapillary Desktop Uploader version as well.

---

<div class="post-metadata">

### Author: ![ursus](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/ursus/32/72863_2.png) [@ursus](https://forum.mapillary.com/u/ursus)
#### Post date: [July 26, 2026, 9:53am UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/18 "2026-07-26T09:53:52Z")

</div>

Hi @boris I was finally able to get my hands on backup video and check if they are processed correctly via latest Mapillary Desktop Uploader. I found and issue: Mapillary Desktop Uploader says my video is successfully and will be processed, but that’s misleading information, because log file says

`UploadedAlready: Skipping video_2.MP4, already uploaded 7 months ago (2025-12-25 09:26:21)`

---

<div class="post-metadata">

### Author: ![boris](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/boris/32/71767_2.png) [@boris](https://forum.mapillary.com/u/boris)
#### Post date: [August 20, 2026, 10:11am UTC](https://forum.mapillary.com/t/fixing-the-date-with-gps-time-for-beginners/5762/19 "2026-08-20T10:11:17Z")

</div>

Ah, that is confusing. We will update this flow.

In the meantime @ursus - you can temporarily go to Mapillary desktop uploader settings and deselect “Skip uploaded files” - that will force it to re-upload.
