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

Issue 5448130: code review 5448130: time: fix daysIn for December

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

Description

time: fix daysIn for December daysBefore[12+1]: index out of range time.December and Windows SYSTEMTIME.wMonth are 12 for December.

Patch Set 1 #

Patch Set 2 : diff -r ff75ab89c70d https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r ff75ab89c70d https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 65221f097b81 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 65221f097b81 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -1 line) Patch
M src/pkg/time/internal_test.go View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/time/time.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/time/time_test.go View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 9
peterGo
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 4 months ago (2011-12-07 09:33:02 UTC) #1
dsymonds
Add a test please.
12 years, 4 months ago (2011-12-07 11:36:17 UTC) #2
peterGo
On 2011/12/07 11:36:17, dsymonds wrote: > Add a test please. How? daysIn is not exported. ...
12 years, 4 months ago (2011-12-07 17:01:38 UTC) #3
rsc
On Wed, Dec 7, 2011 at 12:01, <go.peter.90@gmail.com> wrote: > How? daysIn is not exported. ...
12 years, 4 months ago (2011-12-07 17:14:02 UTC) #4
peterGo
Hello rsc@golang.org, dsymonds@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 4 months ago (2011-12-07 19:26:35 UTC) #5
rsc
hg file 5448130 time_test.go && hg mail 5448130? On Wed, Dec 7, 2011 at 14:26, ...
12 years, 4 months ago (2011-12-07 19:34:08 UTC) #6
peterGo
Hello rsc@golang.org, dsymonds@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 4 months ago (2011-12-07 19:38:06 UTC) #7
rsc
LGTM Thanks.
12 years, 4 months ago (2011-12-07 19:46:45 UTC) #8
rsc
12 years, 4 months ago (2011-12-07 19:47:28 UTC) #9
*** Submitted as http://code.google.com/p/go/source/detail?r=58e8002fa982 ***

time: fix daysIn for December

daysBefore[12+1]: index out of range
time.December and Windows SYSTEMTIME.wMonth
are 12 for December.

R=rsc, dsymonds
CC=golang-dev
http://codereview.appspot.com/5448130

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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