You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The protobuf library maps a nil timestamp to Jan. 1st, 1970 at midnight UTC and makes IsZero() false. One side effect is that the cli cardOmitEmpty and omitEmpty no longer filter timestamps that have not been initialized. This is also a problem for users of the raw grpc API.
The protobuf library maps a nil timestamp to Jan. 1st, 1970 at midnight UTC and makes IsZero() false. One side effect is that the cli
cardOmitEmpty
andomitEmpty
no longer filter timestamps that have not been initialized. This is also a problem for users of the raw grpc API.(*timestamppb.Timestamp)(nil).AsTime().IsZero() // FALSE!
The solution is to check with
IsValid()
before callingAsTime()
The text was updated successfully, but these errors were encountered: