time: fix unix_time

pull/4229/head
yuyi 2020-04-04 18:10:56 +08:00 committed by GitHub
parent 4bade9bcea
commit 8ba6e45d83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ pub fn new_time(t Time) Time {
}
// unix_time returns Unix time.
pub fn (t &Time) unix_time() int {
pub fn (t Time) unix_time() int {
if t.unix != 0 {
return t.unix
}