(data []byte)
| 17 | } |
| 18 | |
| 19 | func (t *JSONTime) UnmarshalJSON(data []byte) (err error) { |
| 20 | now, err := time.ParseInLocation(`"`+timeJSONFormat+`"`, string(data), time.Local) |
| 21 | *t = JSONTime(now) |
| 22 | return |
| 23 | } |
| 24 | |
| 25 | func (t JSONTime) MarshalJSON() ([]byte, error) { |
| 26 | b := make([]byte, 0, len(timeJSONFormat)+2) |
nothing calls this directly
no test coverage detected