Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #3704

Category None
Changed by Dan Scott <dscottohnoyoudont@laurentian.ca>
Changed at Tue 13 Dec 2016 09:30:47
Repository git://git.evergreen-ils.org/Evergreen.git
Project Evergreen
Branch master
Revision 233e61f3c194974b1316886e49d94b65c90a46f1


LP#1594937 Fix off-by-one display of closed dates
The switch to toISOString() to format dates introduced an off-by-one error in
the closed dates display, showing one extra day of closure due to the timezone
being ignored in toISOString().

toLocaleDateString() is the future of locale-sensitive date formats. In XUL,
because it is an old version of Firefox, it lacks locale sensitivity, but for
the purposes of the web staff client it's a good base to build on as even
Internet Explorer supports the locale and options arguments as of IE 11.

And for the immediate purposes of showing the right dates in the closed dates
editor, it works.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>

Changed files