Skip to content

Commit 8525811

Browse files
author
Corentin Noël
committed
Replace depredated OC.Util.*Date function with moment
As per nextcloud/server#20988 Signed-off-by: Corentin Noël <corentin@elementary.io>
1 parent 5aa94b1 commit 8525811

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

js/activitymodel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
* @returns string E.g. "seconds ago"
3333
*/
3434
getRelativeDate: function () {
35-
return OC.Util.relativeModifiedDate(this.getUnixMilliseconds());
35+
return moment(this.getUnixMilliseconds()).fromNow();
3636
},
3737

3838
/**
3939
* @returns string E.g. "April 26, 2016 10:53 AM"
4040
*/
4141
getFullDate: function () {
42-
return OC.Util.formatDate(this.getUnixMilliseconds());
42+
return moment(this.getUnixMilliseconds()).format('LLL');
4343
},
4444

4545
/**

0 commit comments

Comments
 (0)