mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 00:27:49 -04:00
Don't use hardcoded date and time
Use local time instead. http://momentjs.com/
This commit is contained in:
parent
302c19067a
commit
8ee1fa98df
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue