Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(147)

Issue 7288052: code review 7288052: time: deal a bit better with time zones in Parse (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by rsc
Modified:
12 years, 2 months ago
Reviewers:
CC:
adg, golang-dev
Visibility:
Public.

Description

time: deal a bit better with time zones in Parse * 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 issue 3604. Fixes issue 3653. Fixes issue 4001.

Patch Set 1 #

Patch Set 2 : diff -r 575df914948c https://code.google.com/p/go/ #

Total comments: 8

Patch Set 3 : diff -r 4bdac0ab4493 https://code.google.com/p/go/ #

Patch Set 4 : diff -r 4bdac0ab4493 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -15 lines) Patch
M src/pkg/time/example_test.go View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
M src/pkg/time/format.go View 1 2 4 chunks +40 lines, -13 lines 0 comments Download
M src/pkg/time/time_test.go View 1 2 2 chunks +37 lines, -0 lines 0 comments Download
M src/pkg/time/zoneinfo.go View 1 1 chunk +23 lines, -2 lines 0 comments Download

Messages

Total messages: 6
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
12 years, 2 months ago (2013-02-04 02:04:07 UTC) #1
adg
https://codereview.appspot.com/7288052/diff/2001/src/pkg/time/example_test.go File src/pkg/time/example_test.go (right): https://codereview.appspot.com/7288052/diff/2001/src/pkg/time/example_test.go#newcode71 src/pkg/time/example_test.go:71: const long = "Jan 2, 2006 at 3:04pm (MST)" ...
12 years, 2 months ago (2013-02-04 02:43:07 UTC) #2
rsc
Hello golang-dev@googlegroups.com, adg@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 2 months ago (2013-02-04 03:46:40 UTC) #3
rsc
https://codereview.appspot.com/7288052/diff/2001/src/pkg/time/example_test.go File src/pkg/time/example_test.go (right): https://codereview.appspot.com/7288052/diff/2001/src/pkg/time/example_test.go#newcode71 src/pkg/time/example_test.go:71: const long = "Jan 2, 2006 at 3:04pm (MST)" ...
12 years, 2 months ago (2013-02-04 03:46:55 UTC) #4
adg
LGTM
12 years, 2 months ago (2013-02-04 03:50:59 UTC) #5
rsc
12 years, 2 months ago (2013-02-04 04:02:17 UTC) #6
*** Submitted as https://code.google.com/p/go/source/detail?r=36925180b9ef ***

time: deal a bit better with time zones in Parse

* 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 issue 3604.
Fixes issue 3653.
Fixes issue 4001.

R=adg
CC=golang-dev
https://codereview.appspot.com/7288052
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b