Empty dates are stored as '0000-00-00 00:00:00'.

kaare - June 9, 2009 - 02:18
Project:Exif
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs work
Description

Whenever i save a picture without EXIF info, the field field_ifd0_datetime_value is filled with the value '0000-00-00 00:00:00' in the database, and further, due to cck's handling of this, displayed as the current date. That's pretty weird.

Now, I dived into the date cck handling code and thought I found the bug, but apparently I did not. See #482436: Empty values aren't reset for delta = 0.

The problem is that the field value need to be 'NULL' if it is to be NULL in db, and further, not be displayed. So, this has to be fixed in exif.module. Patch attached.

AttachmentSize
exif-empty-date.patch1.19 KB

#1

rapsli - October 30, 2009 - 05:44
Status:needs review» needs work

can you please update this patch, so it works with the latest version of head, so that it can be testet? I'll then make sure it get's into the module

 
 

Drupal is a registered trademark of Dries Buytaert.