fix issue in json marshal for package egtime

This commit is contained in:
John Guo
2022-01-19 16:44:58 +08:00
parent 033e2c1d78
commit d7b94428ae

View File

@ -446,7 +446,7 @@ func (t *Time) EndOfYear() *Time {
}
// MarshalJSON implements the interface MarshalJSON for json.Marshal.
func (t *Time) MarshalJSON() ([]byte, error) {
func (t Time) MarshalJSON() ([]byte, error) {
return []byte(`"` + t.String() + `"`), nil
}