GooglePhotosExportOrganizer icon indicating copy to clipboard operation
GooglePhotosExportOrganizer copied to clipboard

International Dates Cause App to Skip File

Open Alamantus opened this issue 3 years ago • 2 comments

The Organize process makes several checks to validate the photoTakenDate in the file's .json metadata. Unfortunately, the app was only built with English in mind, but Google allows exporting in the user's native language, which means that JavaScript's new Date() parsing fails on anything that isn't English, causing the app to skip the file because it couldn't be validated. How charming!

To fix this, I'll need to find a date parsing library that can handle any language. This will go hand-in-hand with issue #13.

Alamantus avatar Jan 12 '22 20:01 Alamantus

Just out of curiosity. Why don't you use the timestamp? photoTakenTime = meta.photoTakenTime.timestamp; const date = new Date(photoTakenTime*1000);

omia avatar Mar 09 '23 22:03 omia

I'll have to get a copy of an export again to see if timestamp is consistently provided on photoTakenTime, but if it is (or always has been), then that sounds like an excellent idea!

Alamantus avatar Mar 10 '23 23:03 Alamantus