• Russ Cox's avatar
    time: deal a bit better with time zones in Parse · 1d9f67da
    Russ Cox authored
    * Document Parse's zone interpretation.
    * Add ParseInLocation (API change).
    * Recognize "wrong" time zone names, like daylight savings time in winter.
    * Disambiguate time zone names using offset (like winter EST vs summer EST in Sydney).
    
    The final two are backwards-incompatible changes, but I believe
    they are both buggy behavior in the Go 1.0 versions; the old results
    were more wrong than the new ones.
    
    Fixes #3604.
    Fixes #3653.
    Fixes #4001.
    
    R=adg
    CC=golang-dev
    https://golang.org/cl/7288052
    1d9f67da
example_test.go 3.51 KB