Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
jphautin CreditAttribution: jphautin commentedComment #2
alexh CreditAttribution: alexh commentedYes, I had the same issue and fixed it like this:
Y-m-d\TH:i:s
at admin/config/regional/date-time/formatsHope that helps.
Comment #3
mErilainen CreditAttribution: mErilainen commentedDoesn'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.
Comment #4
jphautin CreditAttribution: jphautin commentedIn 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'.
Comment #5
jphautin CreditAttribution: jphautin commented