Skip to content

time: Unix docs say "UTC" but returns Local, without calculating timezone #11938

@akavel

Description

@akavel

In docs for func Unix(sec int64, nsec int64) Time, it is stated: "sec seconds and nsec nanoseconds since January 1, 1970 UTC". The calculations inside don't seem to take Local timezone into account (unixToInternal is a const), but Time{loc: Local} is returned. I think it's not right?

Similarly in Time.Unix(), and many other different places related to "Unix time".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions