Skip to content

Commit

Permalink
[FIX] User Profile Time Format (RocketChat#15385)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchoeler authored and ggazzo committed Sep 16, 2019
1 parent ec766aa commit 28b7bce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/ui-flextab/client/tabs/userInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ Template.userInfo.helpers({
lastLogin() {
const user = Template.instance().user.get();
if (user && user.lastLogin) {
return moment(user.lastLogin).format('LLL');
return DateFormat.formatDateAndTime(user.lastLogin);
}
},

createdAt() {
const user = Template.instance().user.get();
if (user && user.createdAt) {
return moment(user.createdAt).format('LLL');
return DateFormat.formatDateAndTime(user.createdAt);
}
},
linkedinUsername() {
Expand Down

0 comments on commit 28b7bce

Please sign in to comment.