diff options
author | Clark Tomlinson <fallen013@gmail.com> | 2014-08-26 14:17:33 -0400 |
---|---|---|
committer | Clark Tomlinson <fallen013@gmail.com> | 2014-08-28 09:28:45 -0400 |
commit | 92685acf60afaadcb659eb44b73a6a59de7bce2b (patch) | |
tree | 3b739ad4dae663bd445638bc3fa4dd9e617da888 /settings/js | |
parent | cb0da1178b0872988582ee5fbf6b5b1cb5ea2527 (diff) | |
download | nextcloud-server-92685acf60afaadcb659eb44b73a6a59de7bce2b.tar.gz nextcloud-server-92685acf60afaadcb659eb44b73a6a59de7bce2b.zip |
Implementing moment.js
Updating Usages
Removing unused method
Adding JS Doc
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/users/users.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js index 60948bb99f3..0f72746ee83 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -96,9 +96,8 @@ var UserList = { var lastLoginRel = t('settings', 'never'); var lastLoginAbs = lastLoginRel; if(lastLogin !== 0) { - lastLogin = new Date(lastLogin * 1000); - lastLoginRel = relative_modified_date(lastLogin.getTime() / 1000); - lastLoginAbs = formatDate(lastLogin.getTime()); + lastLoginRel = OC.Util.relativeModifiedDate(lastLogin); + lastLoginAbs = OC.Util.formatDate(lastLogin); } var $tdLastLogin = $tr.find('td.lastLogin'); $tdLastLogin.text(lastLoginRel); |