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.
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 3b82db781f)
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
56e07e5e9d
commit
b2dd74a45c
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue