From 3b82db781f8f779be0c29dc5b4d526a83cb2d0bf Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 14 Aug 2012 10:02:38 -0400 Subject: [PATCH] Bug 8596 - Reports interface date picker doesn't force ISO formatted dates Datepickers follow Koha's preference for date format, but the guided reports system doesn't intelligently handle different date formats. ISO is required. This patch adds some additional configuration to override the date format. To test, create a guided or SQL report which takes a date parameter. The datepicker fields should return an ISO-formatted date. Signed-off-by: Nicole C. Engard Works as advertised. Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- .../prog/en/modules/reports/guided_reports_start.tt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index f516f8abd3..fabb01e463 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -56,6 +56,9 @@ $(document).ready(function(){ positionFixed: false, size: 20 }); + // redefine the datepicker's default because reports require ISO + // http://jqueryui.com/demos/datepicker/#option-dateFormat + $( ".datepicker" ).datepicker( "option", "dateFormat", "yy-mm-dd" ); }); //]]> -- 2.39.5