Skip to content

Use the correct zero value for time.Time throughout the codebase #54

@mihaitodor

Description

@mihaitodor

The correct zero value for time.Time is time.Time{} instead of time.Unix(0, 0). Using the latter can cause hard to find bugs since func (Time) IsZero() would return false when called on time.Unix(0, 0). Details here: https://stackoverflow.com/questions/23051973/what-is-the-zero-value-for-time-time-in-go

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions