Don't use hardcoded date and time

Use local time instead. http://momentjs.com/
This commit is contained in:
Daniel Hansson 2015-03-24 13:41:55 +01:00
parent 302c19067a
commit 8ee1fa98df

View file

@ -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);
},