MantisBT - Piwigo
View Issue Details
0001974Piwigometadatapublic2010.10.30 22:072010.10.30 22:22
plg 
plg 
normalminoralways
closedfixed 
2.1.3 
2.1.42.1.4 
any
Apache 1.3.x
0001974: don't generate invalid creation date from IPTC
On old photo, users sometimes set the date with only the year and it produces something like "19290000" as the creation date. Piwigo doesn't check and inserts 1929-00-00 in the images.date_creation field, and once it is parsed on picture.php, it produces errors.

We should insert a valid date in the database instead.
No tags attached.
Issue History
2010.10.30 22:07plgNew Issue
2010.10.30 22:07plgStatusnew => assigned
2010.10.30 22:07plgAssigned To => plg
2010.10.30 22:07plgbrowser => any
2010.10.30 22:07plgWeb server => Apache 1.3.x
2010.10.30 22:14svnCheckin
2010.10.30 22:14svnNote Added: 0004421
2010.10.30 22:22svnCheckin
2010.10.30 22:22svnNote Added: 0004422
2010.10.30 22:22plgStatusassigned => closed
2010.10.30 22:22plgResolutionopen => fixed
2010.10.30 22:22plgFixed in Version => 2.1.4

Notes
(0004421)
svn   
2010.10.30 22:14   
[Subversion] r7506 by plg on branch 2.1

-----[Subversion commit log]----------------------------------------------------
bug 1974 fixed: don't generate invalid creation date from IPTC,
if month = 0 or day = 0, then month=1 and day=1.
(0004422)
svn   
2010.10.30 22:22   
[Subversion] r7507 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
merge r7506 from branch 2.1 to trunk

bug 1974 fixed: don't generate invalid creation date from IPTC,
if month = 0 or day = 0, then month=1 and day=1.