Added a UTC timestamp for reading history events (#3640)

This commit is contained in:
0xGingi 2025-03-15 14:08:51 -04:00 committed by GitHub
parent 75419fb62b
commit 4cb16be6a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 0 deletions

View file

@ -13,6 +13,7 @@ public class ReadHistoryEvent
public int SeriesId { get; set; }
public required string SeriesName { get; set; } = default!;
public DateTime ReadDate { get; set; }
public DateTime ReadDateUtc { get; set; }
public int ChapterId { get; set; }
public required float ChapterNumber { get; set; } = default!;
}

View file

@ -357,6 +357,7 @@ public class StatisticService : IStatisticService
SeriesId = u.SeriesId,
LibraryId = u.LibraryId,
ReadDate = u.LastModified,
ReadDateUtc = u.LastModifiedUtc,
ChapterId = u.ChapterId,
ChapterNumber = _context.Chapter.Single(c => c.Id == u.ChapterId).MinNumber
})