CRM-15578 - Fix display of dates on past newsletters
authorTim Otten <totten@civicrm.org>
Thu, 8 Jan 2015 02:18:15 +0000 (18:18 -0800)
committerTim Otten <totten@civicrm.org>
Thu, 8 Jan 2015 02:18:15 +0000 (18:18 -0800)
js/angular-crmMailing/directives.js

index bb1104f4c80b00941917e15de664df5ccbf3ced8..e88589d70ed16fcf6628a4f7e21c5bceb9439572 100644 (file)
             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}