diff --git a/API/DTOs/Statistics/ReadHistoryEvent.cs b/API/DTOs/Statistics/ReadHistoryEvent.cs index adb4040ed..9d3a9436e 100644 --- a/API/DTOs/Statistics/ReadHistoryEvent.cs +++ b/API/DTOs/Statistics/ReadHistoryEvent.cs @@ -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!; } diff --git a/API/Services/StatisticService.cs b/API/Services/StatisticService.cs index cd9c0d4e7..96a12f440 100644 --- a/API/Services/StatisticService.cs +++ b/API/Services/StatisticService.cs @@ -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 }) diff --git a/UI/Web/src/app/statistics/_models/read-history-event.ts b/UI/Web/src/app/statistics/_models/read-history-event.ts index 09d78bcbe..26d1a68ca 100644 --- a/UI/Web/src/app/statistics/_models/read-history-event.ts +++ b/UI/Web/src/app/statistics/_models/read-history-event.ts @@ -5,6 +5,7 @@ export interface ReadHistoryEvent { seriesId: number; libraryId: number; readDate: string; + readDateUtc: string; chapterId: number; chapterNumber: number; } diff --git a/openapi.json b/openapi.json index 8c30f4558..090328263 100644 --- a/openapi.json +++ b/openapi.json @@ -20527,6 +20527,11 @@ "type": "string", "format": "date-time" }, + "readDateUtc": { + "type": "string", + "format": "date-time", + "description": "UTC timestamp of when the chapter was read" + }, "chapterId": { "type": "integer", "format": "int32"