mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -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!
|
||||
|
||||
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…
Add table
Add a link
Reference in a new issue