when a message contains a date that we cannon marhsal to json, adjust the date

found a message with a 24 hour time zone offset, which Go's json package cannot
marshal. in that case, we adjust the date to utc.
This commit is contained in:
Mechiel Lukkien
2023-07-01 17:25:10 +02:00
parent 5817e87a32
commit 7facf9d446
2 changed files with 13 additions and 0 deletions

View File

@ -300,6 +300,7 @@ type Message struct {
// ParsedBuf message structure. Currently saved as JSON of message.Part because bstore
// cannot yet store recursive types. Created when first needed, and saved in the
// database.
// todo: once replaced with non-json storage, remove date fixup in ../message/part.go.
ParsedBuf []byte
}