time: fix unix_time
parent
4bade9bcea
commit
8ba6e45d83
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue