Skip to content

time: local timezone affects parsing RFC1123 #16517

@homingli

Description

@homingli
  1. What version of Go are you using (go version)?
    go version go1.5.3 linux/amd64
  2. What operating system and processor architecture are you using (go env)?
    GOHOSTARCH="amd64"
    GOHOSTOS="linux"
  3. What did you do?
    Parsing RFC1123 the 4digit timezone exhibit different behavior depending on local timezone.
    On my laptop set to PDT, the result is expected.
    On a server set to UTC, the result is +0000 PDT (same behavior as https://play.golang.org/p/Tlbt2g24Fb)
  4. What did you expect to see?
    2016-07-26 03:34:46 -0700 PDT
  5. What did you see instead?
    2016-07-26 03:34:46 +0000 PDT

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