mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Added a UTC timestamp for reading history events (#3640)
This commit is contained in:
parent
75419fb62b
commit
4cb16be6a5
@ -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!;
|
||||
}
|
||||
|
@ -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
|
||||
})
|
||||
|
@ -5,6 +5,7 @@ export interface ReadHistoryEvent {
|
||||
seriesId: number;
|
||||
libraryId: number;
|
||||
readDate: string;
|
||||
readDateUtc: string;
|
||||
chapterId: number;
|
||||
chapterNumber: number;
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user