Skip to content

Commit 431b483

Browse files
committed
use unix() method to access unix time value
1 parent 9b6bffa commit 431b483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

encode.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ pub fn (mut e Encoder) encode_time(t time.Time) {
264264
} else {
265265
e.write_container_len(container_raw_legacy, 4)
266266
}
267-
e.write_u32(u32(t.unix))
267+
e.write_u32(u32(t.unix()))
268268
// NOTE: automatically use the best storage depending if we need nanosecond
269269
// precision or not. time.Time doesn't support nanosecond currently (I think)
270270
//

0 commit comments

Comments
 (0)