diff --git a/vlib/time/operator.v b/vlib/time/operator.v index 8242e3444e..66dcdb0bd4 100644 --- a/vlib/time/operator.v +++ b/vlib/time/operator.v @@ -3,8 +3,8 @@ module time // operator `==` returns true if provided time is equal to time @[inline] pub fn (t1 Time) == (t2 Time) bool { - return t1.is_local == t2.is_local && t1.local_unix() == t2.local_unix() - && t1.nanosecond == t2.nanosecond + return t1.nanosecond == t2.nanosecond && t1.is_local == t2.is_local + && t1.local_unix() == t2.local_unix() } // operator `<` returns true if provided time is less than time