Skip to content

Commit

Permalink
use unix() method to access unix time value
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Apr 17, 2024
1 parent 9b6bffa commit 431b483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encode.v
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ pub fn (mut e Encoder) encode_time(t time.Time) {
} else {
e.write_container_len(container_raw_legacy, 4)
}
e.write_u32(u32(t.unix))
e.write_u32(u32(t.unix()))
// NOTE: automatically use the best storage depending if we need nanosecond
// precision or not. time.Time doesn't support nanosecond currently (I think)
//
Expand Down

0 comments on commit 431b483

Please sign in to comment.