mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Switch to seconds for DATE_MODIFIED of saved pages (#552)
While most Android skins are seemingly able to handle the millisecond format, the documentation technically specifies seconds. This seems to be causing issues on Samsung devices using the Samsung Gallery app, which renders the millisecond timestamps as if they were second ones, causing the dates to be set at some point in the year 56189. This change should fix that issue on Samsung devices and have no real impact on the rest.
This commit is contained in:
parent
59bedb33ff
commit
0ea0138a73
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ class ImageSaver(
|
|||
MediaStore.Images.Media.RELATIVE_PATH to relativePath,
|
||||
MediaStore.Images.Media.DISPLAY_NAME to image.name,
|
||||
MediaStore.Images.Media.MIME_TYPE to type.mime,
|
||||
MediaStore.Images.Media.DATE_MODIFIED to Instant.now().toEpochMilli(),
|
||||
MediaStore.Images.Media.DATE_MODIFIED to Instant.now().epochSecond,
|
||||
)
|
||||
|
||||
val picture = findUriOrDefault(relativePath, filename) {
|
||||
|
|
Loading…
Reference in a new issue