blitline_gem icon indicating copy to clipboard operation
blitline_gem copied to clipboard

Invalid date format for date_created

Open NoelAbrahams opened this issue 10 years ago • 2 comments

Hi,

the property original_meta.data_created is returning a date string of the form:

"2013:11:03 16:37:36"

This is not a valid date format because the separator for the date components should be either a hyphen or slash and not a colon.

I suggest the date is returned in the ISO 8601 format

"2013-11-03T16:37:36.000Z"

Thanks.

NoelAbrahams avatar Apr 14 '14 19:04 NoelAbrahams

Unfortunately, that field is just pass-through data from the EXIF data on the photo.

We read EXIF "DateTimeOriginal" and if that doesn't exist we fall back to EXIF "DateTime"

EXIF data is notoriously poorly spec'd and often times contains oddly formatted data ( negative values or bad/partial date formats, illegal or misformed lat/lng values, etc). We don't do any normalization of this data (although that would be a nice feature for us to add, admittedly). We would have to add another field indicating that it's Blitline's attempt at a normalized date, not the actual EXIF date because some other 3rd parties might rely on their own non-standard date format.

blitline-dev avatar Apr 14 '14 19:04 blitline-dev

+1 if Blitline can attempt to normalise the date on their end.

NoelAbrahams avatar Apr 15 '14 19:04 NoelAbrahams