mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 01:06:21 +01:00
Fix exception when lastModified = null
This commit is contained in:
parent
368a6a6755
commit
3054bfaf9c
1 changed files with 4 additions and 1 deletions
|
@ -410,7 +410,10 @@ class File with EquatableMixin {
|
|||
|
||||
extension FileExtension on File {
|
||||
DateTime get bestDateTime {
|
||||
return overrideDateTime ?? metadata?.exif?.dateTimeOriginal ?? lastModified;
|
||||
return overrideDateTime ??
|
||||
metadata?.exif?.dateTimeOriginal ??
|
||||
lastModified ??
|
||||
DateTime.now().toUtc();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue