forked from MapComplete/MapComplete
		
	Fix: attempt to add more EXIF-fields, see #2296
This commit is contained in:
		
							parent
							
								
									b23b216564
								
							
						
					
					
						commit
						a87e9e2e98
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -231,7 +231,7 @@ export class PanoramaxUploader implements ImageUploader {
 | 
				
			||||||
                lat = exifLat
 | 
					                lat = exifLat
 | 
				
			||||||
                lon = exifLon
 | 
					                lon = exifLon
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            const [date, time] = tags.DateTime.value[0].split(" ")
 | 
					            const [date, time] =( tags.DateTime.value[0] ?? tags.DateTimeOriginal.value[0] ?? tags.GPSDateStamp ?? tags["Date Created"]).split(" ")
 | 
				
			||||||
            const exifDatetime = new Date(date.replaceAll(":", "-") + "T" + time)
 | 
					            const exifDatetime = new Date(date.replaceAll(":", "-") + "T" + time)
 | 
				
			||||||
            if (exifDatetime.getFullYear() === 1970) {
 | 
					            if (exifDatetime.getFullYear() === 1970) {
 | 
				
			||||||
                // The data probably got reset to the epoch
 | 
					                // The data probably got reset to the epoch
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue