mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

golang's concept of "zero" time does not align with the zero value of a unix timestamp. Initializing time.Time with a unix timestamp of 0 makes time.Time.IsZero fail. Solve this by initializing time.Time only if we care about the time.