From: Daniel Hansson Date: Tue, 24 Mar 2015 12:41:55 +0000 (+0100) Subject: Don't use hardcoded date and time X-Git-Tag: v8.1.0alpha1~200^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8ee1fa98df8e0095ed94ff60421b2fdd9eb6224f;p=nextcloud-server.git Don't use hardcoded date and time Use local time instead. http://momentjs.com/ --- diff --git a/core/js/js.js b/core/js/js.js index e65b33d8607..00adcc514bc 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1338,7 +1338,7 @@ OC.Util = { * @returns {string} timestamp formatted as requested */ formatDate: function (timestamp, format) { - format = format || "MMMM D, YYYY H:mm"; + format = format || "LLL"; return moment(timestamp).format(format); },