Fixed the issue where the recent changes page was not showing the correct date. #1296

pull/1298/head
Jamie.Rees 8 years ago
parent 4e817b5aaa
commit a5b08a54b6

@ -692,7 +692,7 @@ namespace Ombi.UI.Modules
// Let's find that user!
var user = UserHelper.GetUser(username);
userId = user.UserId;
userId = user?.UserId ?? string.Empty;
}
UserLogins.Insert(new UserLogins { UserId = userId, Type = type, LastLoggedIn = DateTime.UtcNow });

@ -198,7 +198,7 @@
dataType: "json",
success: function (response) {
$(response).each(function (index, item) {
item.date = moment.utc(item.data).local().format('lll');
item.date = moment.utc(item.date).local().format('lll');
var html = changesTemplate(item);
$area.append(html);
});

Loading…
Cancel
Save