Merge pull request #15151 from owncloud/use-local-time
Don't use hardcoded date and time
This commit is contained in:
commit
cc2092a511
|
@ -1338,7 +1338,7 @@ OC.Util = {
|
||||||
* @returns {string} timestamp formatted as requested
|
* @returns {string} timestamp formatted as requested
|
||||||
*/
|
*/
|
||||||
formatDate: function (timestamp, format) {
|
formatDate: function (timestamp, format) {
|
||||||
format = format || "MMMM D, YYYY H:mm";
|
format = format || "LLL";
|
||||||
return moment(timestamp).format(format);
|
return moment(timestamp).format(format);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue