diff options
Diffstat (limited to 'settings/js/users/users.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); |