From edd555df4dc40f9ee3f8625240564fcc65c2935f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 4 Jan 2016 11:03:43 +0000 Subject: [PATCH] Bug 14060: Add support for dmydot Signed-off-by: Owen Leonard Signed-off-by: Nick Clemens Signed-off-by: Kyle M Hall --- koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc index 1b9e48b0dd..0eb2c7f9f5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc @@ -19,6 +19,9 @@ function is_valid_date(date) { } else if (dateformat == 'iso' ) { dateformat = 'yy-mm-dd'; dateformat_str = 'yyyy-mm-dd'; + } else if ( dateformat == 'dmydot' ) { + dateformat = 'dd.mm.yy'; + dateformat_str = 'dd.mm.yyyy'; } try { $.datepicker.parseDate(dateformat, date);