From b449953950a2b5f17c270dc2154f9f47c567772e Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sat, 27 Dec 2014 23:57:46 -0500 Subject: [PATCH] #91 Dates must be in YYYY-MM-DD format To prevent any ambiguous M/D/Y vs D/M/Y dates --- admin/new_ticket.php | 2 ++ index.php | 2 ++ js/modsForHesk-javascript.js | 3 ++- language/en/text.php | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/admin/new_ticket.php b/admin/new_ticket.php index 44c6c7f5..e8eb6afe 100644 --- a/admin/new_ticket.php +++ b/admin/new_ticket.php @@ -353,6 +353,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
+ '.$hesklang['date_format'].'
'; break; @@ -530,6 +531,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
+ '.$hesklang['date_format'].'
'; break; diff --git a/index.php b/index.php index ae6b5565..83212f63 100644 --- a/index.php +++ b/index.php @@ -382,6 +382,7 @@ function print_add_ticket()
+ '.$hesklang['date_format'].'
'; break; @@ -610,6 +611,7 @@ function print_add_ticket()
+ '.$hesklang['date_format'].'
'; break; diff --git a/js/modsForHesk-javascript.js b/js/modsForHesk-javascript.js index 368c23cc..75ce8f12 100644 --- a/js/modsForHesk-javascript.js +++ b/js/modsForHesk-javascript.js @@ -15,7 +15,8 @@ var loadJquery = function() todayBtn: "linked", clearBtn: true, autoclose: true, - todayHighlight: true + todayHighlight: true, + format: "yyyy-mm-dd" }); }); }; diff --git a/language/en/text.php b/language/en/text.php index cb6e6414..c2c26c69 100644 --- a/language/en/text.php +++ b/language/en/text.php @@ -26,7 +26,7 @@ $hesklang['date_custom_field'] = 'Date'; $hesklang['date_custom_field_text'] = 'No options for this custom field type.'; $hesklang['multiple_select_custom_field'] = 'Multiple Select box'; $hesklang['multiple_select_custom_field_text'] = 'Options for this multi-select box, enter one option per line (each line will be a choice your customers can choose from). You need to enter at least two options!'; -$hesklang['invalid_date_format'] = 'Date must be in YYYY-MM-DD format.'; +$hesklang['date_format'] = 'Date must be in YYYY-MM-DD format.'; // ADDED OR MODIFIED IN Mods For HESK 1.6.0 $hesklang['ticket_closed'] = '[#%%TRACK_ID%%] Ticket closed/resolved';