From df7306f30312d0532e54cb49bdd22d51ea292290 Mon Sep 17 00:00:00 2001 From: aydreeihn <adriane@enhancesoft.com> Date: Fri, 13 Sep 2019 09:40:54 -0500 Subject: [PATCH] European Date Format Issue This commit fixes an issue where if your date format is dd/MM/y h:mm a, the date picker will show the wrong year because the dates were not translating correctly between PHP and JS. --- scp/js/scp.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scp/js/scp.js b/scp/js/scp.js index 5e520f389..759ad2ece 100644 --- a/scp/js/scp.js +++ b/scp/js/scp.js @@ -608,6 +608,7 @@ $.translate_format = function(str) { 'yyyy': '`', 'yyy': '`', 'yy': 'y', + 'y': 'yy', '`': 'yy' }; // Change PHP formats to datepicker ones -- GitLab