LP#1432753 Restore "All day" verbiage to Closed Dates editor
authorDan Scott <dscott@laurentian.ca>
Mon, 12 Dec 2016 20:39:08 +0000 (15:39 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 19 Dec 2016 23:09:42 +0000 (18:09 -0500)
Commit ede7e78925 replaced the JSAN calls to util.date.formatted_date() with
inline date/time handling, in the process returning times with granularity to
the minute instead of to the second. This resulted in the test for "all day"
closings always failing.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/xul/staff_client/server/admin/closed_dates.js

index 50d74c2..732b17c 100644 (file)
@@ -191,7 +191,7 @@ function cdBuildRow( date ) {
     var row;
     var flesh = false;
 
-    if( sh == '00:00:00' && eh == '23:59:59' ) {
+    if( sh == '00:00' && eh == '23:59' ) {
 
         if( sd == ed ) {
             row = cdAllDayTemplate.cloneNode(true);