Bugzilla – Attachment 11645 Details for
Bug 8596
Reports interface date picker doesn't force ISO formatted dates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 8596 - Reports interface date picker doesn't force ISO formatted dates
SIGNED-OFF-Bug-8596---Reports-interface-date-picke.patch (text/plain), 1.47 KB, created by
Nicole C. Engard
on 2012-08-16 17:16:33 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 8596 - Reports interface date picker doesn't force ISO formatted dates
Filename:
MIME Type:
Creator:
Nicole C. Engard
Created:
2012-08-16 17:16:33 UTC
Size:
1.47 KB
patch
obsolete
>From 32d704e34a6e2382f7ab9cfbdff4f1065c655234 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 14 Aug 2012 10:02:38 -0400 >Subject: [PATCH] [SIGNED-OFF] 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 <nengard@bywatersolutions.com> >Works as advertised. >--- > .../en/modules/reports/guided_reports_start.tt | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > >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 3d9a7ab..a152822 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" ); > }); > //]]> > </script> >-- >1.7.2.3
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8596
:
11605
| 11645