upgrade deps; rewrite smtp session

This commit is contained in:
Aine
2024-02-19 22:55:14 +02:00
parent 10213cc7d7
commit a01720da00
277 changed files with 106832 additions and 7641 deletions

View File

@@ -53,7 +53,7 @@ func (um UnixMicroString) MarshalJSON() ([]byte, error) {
if um.IsZero() {
return []byte{'"', '0', '"'}, nil
}
return json.Marshal(strconv.FormatInt(um.UnixMilli(), 10))
return json.Marshal(strconv.FormatInt(um.UnixMicro(), 10))
}
func (um *UnixMicroString) UnmarshalJSON(data []byte) error {
@@ -68,7 +68,7 @@ func (um UnixNanoString) MarshalJSON() ([]byte, error) {
if um.IsZero() {
return []byte{'"', '0', '"'}, nil
}
return json.Marshal(um.UnixNano())
return json.Marshal(strconv.FormatInt(um.UnixNano(), 10))
}
func (um *UnixNanoString) UnmarshalJSON(data []byte) error {
@@ -85,7 +85,7 @@ func (u UnixString) MarshalJSON() ([]byte, error) {
if u.IsZero() {
return []byte{'"', '0', '"'}, nil
}
return json.Marshal(u.Unix())
return json.Marshal(strconv.FormatInt(u.Unix(), 10))
}
func (u *UnixString) UnmarshalJSON(data []byte) error {