@@ -264,12 +264,12 @@ func (l *Location) firstZoneUsed() bool {
264
264
}
265
265
266
266
// tzset takes a timezone string like the one found in the TZ environment
267
- // variable, the end of the last time zone transition expressed as seconds
267
+ // variable, the time of the last time zone transition expressed as seconds
268
268
// since January 1, 1970 00:00:00 UTC, and a time expressed the same way.
269
269
// We call this a tzset string since in C the function tzset reads TZ.
270
270
// The return values are as for lookup, plus ok which reports whether the
271
271
// parse succeeded.
272
- func tzset (s string , initEnd , sec int64 ) (name string , offset int , start , end int64 , isDST , ok bool ) {
272
+ func tzset (s string , lastTxSec , sec int64 ) (name string , offset int , start , end int64 , isDST , ok bool ) {
273
273
var (
274
274
stdName , dstName string
275
275
stdOffset , dstOffset int
@@ -290,7 +290,7 @@ func tzset(s string, initEnd, sec int64) (name string, offset int, start, end in
290
290
291
291
if len (s ) == 0 || s [0 ] == ',' {
292
292
// No daylight savings time.
293
- return stdName , stdOffset , initEnd , omega , false , true
293
+ return stdName , stdOffset , lastTxSec , omega , false , true
294
294
}
295
295
296
296
dstName , s , ok = tzsetName (s )
0 commit comments