Metadata: Add date string defaults to be ignored #3229
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
6f578af5c1
commit
77714e8e3f
1 changed files with 8 additions and 1 deletions
|
@ -29,9 +29,16 @@ func EmptyDateTime(s string) bool {
|
|||
return true
|
||||
case "0", "00", "0000", "0000:00:00", "00:00:00", "0000-00-00", "00-00-00":
|
||||
return true
|
||||
case " : : : : ", " - - - - ", " - - : : ":
|
||||
// Exif default.
|
||||
return true
|
||||
case "0000:00:00 00:00:00", "0000-00-00 00-00-00", "0000-00-00 00:00:00":
|
||||
return true
|
||||
case "0001-01-01 00:00:00", "0001-01-01 00:00:00 +0000 UTC":
|
||||
case "0001:01:01 00:00:00", "0001-01-01 00-00-00", "0001-01-01 00:00:00":
|
||||
// Go default.
|
||||
return true
|
||||
case "0001:01:01 00:00:00 +0000 UTC", "0001-01-01 00-00-00 +0000 UTC", "0001-01-01 00:00:00 +0000 UTC":
|
||||
// Go default with time zone.
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue