From: Tim Otten Date: Thu, 8 Jan 2015 02:18:15 +0000 (-0800) Subject: CRM-15578 - Fix display of dates on past newsletters X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b3cb1ccef6ea20d2a5975e4b9b33d246564a81cd;p=civicrm-core.git CRM-15578 - Fix display of dates on past newsletters --- diff --git a/js/angular-crmMailing/directives.js b/js/angular-crmMailing/directives.js index bb1104f4c8..e88589d70e 100644 --- a/js/angular-crmMailing/directives.js +++ b/js/angular-crmMailing/directives.js @@ -251,7 +251,7 @@ return date; } var p = date.split(/[\- :]/); - return new Date(p[0], p[1], p[2], p[3], p[4], p[5]); + return new Date(parseInt(p[0]), parseInt(p[1])-1, parseInt(p[2]), parseInt(p[3]), parseInt(p[4]), parseInt(p[5])); }; /// Remove {value} from {array}