summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2011-09-12 17:18:25 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2011-09-12 17:18:25 -0700
commit35b4d4a4817a2a7dda6eeffd6f12b5c6540d0571 (patch)
tree131f41edd82f93317177936880c07e2a25899f1e
parent9fca972432c6de5c7a54896226e33873711200ef (diff)
downloadgo-35b4d4a4817a2a7dda6eeffd6f12b5c6540d0571.tar.gz
time: fix Windows build after ceeedb519c4a
R=golang-dev, r CC=golang-dev http://codereview.appspot.com/4983060
-rw-r--r--src/pkg/time/zoneinfo_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/time/zoneinfo_windows.go b/src/pkg/time/zoneinfo_windows.go
index ab3e7df59..8fb6d2166 100644
--- a/src/pkg/time/zoneinfo_windows.go
+++ b/src/pkg/time/zoneinfo_windows.go
@@ -70,7 +70,7 @@ func (z *zone) populate(bias, biasdelta int32, d *syscall.Systemtime, name []uin
// Pre-calculate cutoff time in seconds since the Unix epoch, if data is supplied in "absolute" format.
func (z *zone) preCalculateAbsSec() {
if z.year != 0 {
- z.abssec = (&Time{z.year, int(z.month), int(z.day), int(z.hour), int(z.minute), int(z.second), 0, 0, 0, ""}).Seconds()
+ z.abssec = (&Time{z.year, int(z.month), int(z.day), int(z.hour), int(z.minute), int(z.second), 0, 0, ""}).Seconds()
// Time given is in "local" time. Adjust it for "utc".
z.abssec -= int64(z.prev.offset)
}
@@ -83,7 +83,7 @@ func (z *zone) cutoffSeconds(year int64) int64 {
// z.dayofweek is appropriate weekday (Sunday=0 to Saturday=6)
// z.day is week within the month (1 to 5, where 5 is last week of the month)
// z.hour, z.minute and z.second are absolute time
- t := &Time{year, int(z.month), 1, int(z.hour), int(z.minute), int(z.second), 0, 0, 0, ""}
+ t := &Time{year, int(z.month), 1, int(z.hour), int(z.minute), int(z.second), 0, 0, ""}
t = SecondsToUTC(t.Seconds())
i := int(z.dayofweek) - t.Weekday
if i < 0 {