Menu

#274 Edit Title allows YYYY-02-29 dates

v1.0 (example)
closed-fixed
5
2013-10-14
2012-10-11
Ahasuerus
No

Edit Title allows YYYY-02-29 dates to be submitted for all years. If the year is not a leap year, then the submission handling logic automatically changes the year to 0000-00-00 behind the scenes without notifying the editor. This is undesirable and we should change Edit Title validation to display a pop-up error up front when February 29 dates are submitted for non-leap years.

Note that the JavaScript validation code currently says "The last day of February is "29" because [with] leap years we can't be sure whether a year was a leap year or not -- the calculations were different under the Julian calendar which was used by some countries (e.g. Russia) into the 20th century". However, MySQL won't let us file 02-29 dates for not-leap (Gregorian) years and will error out, so letting these dates in is not an option.

Discussion

  • Ahasuerus

    Ahasuerus - 2013-10-14

    Implemented in edit/isfdblib.py 1.34. Installed in r2013-132 on 2013-10-13.

     
  • Ahasuerus

    Ahasuerus - 2013-10-14

    Fixed in edit/isfdblib.py 1.34. Installed in r2013-132 on 2013-10-13.

     
  • Ahasuerus

    Ahasuerus - 2013-10-14
    • status: open --> closed-fixed
    • assigned_to: Ahasuerus
    • Group: --> v1.0 (example)
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB