error on displaying End / Expiry Date on zero value

Bug #571008 reported by Peter Hebert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
phSite CMS
Fix Committed
Medium
Peter Hebert

Bug Description

In the Content Editor ( url : /cms/content/edit/ ), the End / Expiry Date is displaying as '-0001-11-30 00:00:00' or some other negative value in the form, when the stored DB value is '0000-00-00 00:00:00' (zero). If value in DB is NULL, then it works fine (blank field). The correct behaviour is to show a blank field if the DB value is zero, and to store a NULL value if the form field is blank. This probably has something to do with the time zone conversion functionality converting the time to the user's specified time zone.

Tags: date end time
Changed in phsite:
importance: Undecided → Medium
summary: - error on displaying End / Expiry Date on NULL
+ error on displaying End / Expiry Date on zero value
Changed in phsite:
status: New → Fix Committed
assignee: nobody → Peter Hebert (mail-peterhebert)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.