From 140dd850ff1eae869cd5d8a9e55e24f17b7682f8 Mon Sep 17 00:00:00 2001 From: Fabio Vilela Date: Tue, 23 Feb 2016 09:30:47 +1100 Subject: [PATCH] fix date format inconsistency across different browsers --- app.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app.js b/app.js index 2c36cc6..15fcb94 100644 --- a/app.js +++ b/app.js @@ -212,12 +212,7 @@ }, toLocaleDate: function(date) { - return new Date(date).toLocaleString(this.locale, { - year: 'numeric', - month: 'numeric', - day: 'numeric', - timeZone: 'UTC' - }); + return moment(date).utc().format('l'); }, showDisplay: function() {