allow setting dates before epoch

This commit is contained in:
Thibault Deckers 2023-02-17 17:07:03 +01:00
parent c17dac2a83
commit 0e4fbdade2
2 changed files with 1 additions and 5 deletions

View file

@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file.
- disabling the recycle bin will delete forever items in it - disabling the recycle bin will delete forever items in it
- remember pin status of albums becoming empty - remember pin status of albums becoming empty
- allow setting dates before 1970/01/01
- upgraded Flutter to stable v3.7.3 - upgraded Flutter to stable v3.7.3
### Fixed ### Fixed

View file

@ -811,11 +811,6 @@ abstract class ImageProvider {
fields: List<String>, fields: List<String>,
callback: ImageOpCallback, callback: ImageOpCallback,
) { ) {
if (dateMillis != null && dateMillis < 0) {
callback.onFailure(Exception("dateMillis=$dateMillis cannot be negative"))
return
}
val success = editExif(context, path, uri, mimeType, callback) { exif -> val success = editExif(context, path, uri, mimeType, callback) { exif ->
when { when {
dateMillis != null -> { dateMillis != null -> {