We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
unix()
1 parent 9b6bffa commit 431b483Copy full SHA for 431b483
encode.v
@@ -264,7 +264,7 @@ pub fn (mut e Encoder) encode_time(t time.Time) {
264
} else {
265
e.write_container_len(container_raw_legacy, 4)
266
}
267
- e.write_u32(u32(t.unix))
+ e.write_u32(u32(t.unix()))
268
// NOTE: automatically use the best storage depending if we need nanosecond
269
// precision or not. time.Time doesn't support nanosecond currently (I think)
270
//
0 commit comments