mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00:00
Don't use hardcoded date and time
Use local time instead. http://momentjs.com/
This commit is contained in:
parent
302c19067a
commit
8ee1fa98df
@ -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);
|
||||
},
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user