mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
Fixed the issue where the recent changes page was not showing the correct date. #1296
This commit is contained in:
parent
4e817b5aaa
commit
a5b08a54b6
2 changed files with 2 additions and 2 deletions
|
@ -692,7 +692,7 @@ namespace Ombi.UI.Modules
|
||||||
// Let's find that user!
|
// Let's find that user!
|
||||||
|
|
||||||
var user = UserHelper.GetUser(username);
|
var user = UserHelper.GetUser(username);
|
||||||
userId = user.UserId;
|
userId = user?.UserId ?? string.Empty;
|
||||||
}
|
}
|
||||||
UserLogins.Insert(new UserLogins { UserId = userId, Type = type, LastLoggedIn = DateTime.UtcNow });
|
UserLogins.Insert(new UserLogins { UserId = userId, Type = type, LastLoggedIn = DateTime.UtcNow });
|
||||||
|
|
||||||
|
|
|
@ -198,7 +198,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
$(response).each(function (index, item) {
|
$(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);
|
var html = changesTemplate(item);
|
||||||
$area.append(html);
|
$area.append(html);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue