I am able to import the date a photo was taken from exif to a date field using this module and it works great. However if I go to "/admin/config/regional/date-time" and click on Save Configuration I am no longer able to import the date the photo was taken, the date field is instead populated by the current date and time.

I have tested this several times on different installs and every time I have received the same results. Can anyone duplicate this?

Comments

jphautin’s picture

Assigned: Unassigned » jphautin
Priority: Normal » Major
alexh’s picture

Yes, I had the same issue and fixed it like this:

  1. Checked the date format of sample data at admin/config/media/exif/general. It looks like 2006-12-04T17:27:44
  2. Add format Y-m-d\TH:i:s at admin/config/regional/date-time/formats
  3. Go to admin/config/regional/date-time and set the exif date type to that format.

Hope that helps.

mErilainen’s picture

Doesn't work for me :(
Works after all, there are many dates in the data, some of them don't seem to get imported correctly. I'll add another issue if it becomes a problem.

jphautin’s picture

In fact, exif date format depends on the camera you are using. Some save date with the 'T', some do not.
This is why you need to define yourself the format of your camera.
N.B.: Exif specification indicate to use the date format with the 'T'.

jphautin’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.