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 |
Jump to:
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.
| Attachment | Size |
|---|---|
| exif-empty-date.patch | 1.19 KB |

#1
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