diff --git a/backend/core/models/common/iso8601time.go b/backend/core/models/common/iso8601time.go index 6880821fe6e..512a220705d 100644 --- a/backend/core/models/common/iso8601time.go +++ b/backend/core/models/common/iso8601time.go @@ -97,6 +97,9 @@ func (jt Iso8601Time) MarshalJSON() ([]byte, error) { // UnmarshalJSON FIXME ... func (jt *Iso8601Time) UnmarshalJSON(b []byte) error { timeString := string(b) + if timeString == `""` { + return nil + } if timeString == "null" { return nil } diff --git a/backend/core/models/migrationscripts/archived/iso8601time.go b/backend/core/models/migrationscripts/archived/iso8601time.go index 84af885d0eb..a2597fdd07c 100644 --- a/backend/core/models/migrationscripts/archived/iso8601time.go +++ b/backend/core/models/migrationscripts/archived/iso8601time.go @@ -100,6 +100,9 @@ func (jt *Iso8601Time) UnmarshalJSON(b []byte) error { if timeString == "null" { return nil } + if timeString == `""` { + return nil + } if strings.Contains(timeString, "0000-00-00") { return nil }