Skip to content

Commit eedeb17

Browse files
committed
[fix] fix marshalText() of Time
There is something werid on Go's officail json package. _(:зゝ∠)_
1 parent 6ec6cb3 commit eedeb17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ func (t Time) Time() time.Time {
7575
}
7676

7777
// MarshalText implements the encoding.TextMarshaler
78-
func (t *Time) MarshalText() (text []byte, err error) {
78+
func (t Time) MarshalText() (text []byte, err error) {
7979
return []byte(strconv.FormatInt(t.Time().Unix(), 10)), nil
8080
}

0 commit comments

Comments
 (0)