fixed time zone bug

This commit is contained in:
gorhill
2013-08-31 13:08:04 -04:00
parent 5c3ec34a8d
commit 68fd2b282b

View File

@@ -232,7 +232,7 @@ func (expr *Expression) nextYear(t time.Time) time.Time {
expr.minuteList[0], expr.minuteList[0],
expr.secondList[0], expr.secondList[0],
0, 0,
time.Local)) t.Location()))
} }
return time.Date( return time.Date(
expr.yearList[i], expr.yearList[i],
@@ -242,7 +242,7 @@ func (expr *Expression) nextYear(t time.Time) time.Time {
expr.minuteList[0], expr.minuteList[0],
expr.secondList[0], expr.secondList[0],
0, 0,
time.Local) t.Location())
} }
/******************************************************************************/ /******************************************************************************/
@@ -265,7 +265,7 @@ func (expr *Expression) nextMonth(t time.Time) time.Time {
expr.minuteList[0], expr.minuteList[0],
expr.secondList[0], expr.secondList[0],
0, 0,
time.Local)) t.Location()))
} }
return time.Date( return time.Date(
@@ -276,7 +276,7 @@ func (expr *Expression) nextMonth(t time.Time) time.Time {
expr.minuteList[0], expr.minuteList[0],
expr.secondList[0], expr.secondList[0],
0, 0,
time.Local) t.Location())
} }
/******************************************************************************/ /******************************************************************************/