OpenESignForms / openesignforms

Open eSignForms is the first open source SaaS web contracting platform
https://open.esignforms.com
107 stars 50 forks source link

Date routines have trouble with daylight savings for 1965 and 1966 #177

Closed OpenESignForms closed 8 years ago

OpenESignForms commented 8 years ago

Noted that if we enter the date 04/25/1965, all is ok, but if we enter 04/26/1965, it loses a day.

This occurs up to 10/31/1965 being wrong, but 11/01/1965 is fine.

We do not note this for any other years, so it's unclear why/how DST affects the dates.

Transition points where bug appears: 04/25/1965 - okay 04/26/1965 - loses a day ... 10/31/1965 - loses a day 11/01/1965 - okay

and

04/24/1966 - okay 04/25/1966 - loses a day ... 10/30/1996 - loses a day 10/31/1996 - okay

OpenESignForms commented 8 years ago

Fixed to parse input dates directly to GMT noon rather than attempt to adjust based on DST transitions in the Java Date/Calendar libraries.