Use & write Year, Month, Day info in ComicInfo (#3967)
* Use & write Year, Month, Day info in ComicInfo Currently, users can only modify the date Mihon displays in the chapter list by manipulating the _last modified date_ of the file. This is obviously inconvenient, especially since the ComicInfo spec includes Year, Month, and Day fields for this exact purpose. If present, this reads the date at start of day in the current default system time zone (which matches how we use Chapter.dateUpload with relativeDateText, for example). If Year is not specified, the entire date process is skipped. If Month is not specified, it is set to January. If Day is not specified, it is set to the first. The parsed date (if any) is set as the Chapter's `date_upload` which is used for display in the app. Additionally, Mihon now includes this info in the written ComicInfo.xml file for downloaded chapters. This will be convenient for many more users, not least of which those who move source-downloaded chapters to Local Source to read from there. --- I used kotlinx.datetime because it's what we use for date parsing in non-i18n places already. * Changelog
This commit is contained in:
@@ -15,6 +15,7 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
|
||||
- Add `id:` prefix search to remaining trackers (AniList, Bangumi, Kitsu, MangaUpdates, Shikimori, and Hikka) ([@MajorTanya](https://github.com/MajorTanya)) ([#3776](https://github.com/mihonapp/mihon/pull/3776))
|
||||
- Allow `id:` to search for slugs on Kitsu ([@MajorTanya](https://github.com/MajorTanya)) ([#3792](https://github.com/mihonapp/mihon/pull/3792))
|
||||
- Add support for using the user's chosen rating system for Kitsu ([@MajorTanya](https://github.com/MajorTanya)) ([#3818](https://github.com/mihonapp/mihon/pull/3818))
|
||||
- Add support for the Year, Month, and Day fields in ComicInfo.xml files for chapter dating ([@MajorTanya](https://github.com/MajorTanya)) ([#3967](https://github.com/mihonapp/mihon/pull/3967))
|
||||
|
||||
### Improved
|
||||
- Show updates and upcoming filter icon as active for categories ([@Secozzi](https://github.com/Secozzi)) ([#3772](https://github.com/mihonapp/mihon/pull/3772))
|
||||
|
||||
Reference in New Issue
Block a user