From 1570ccb5ba063d3882d0c8e64bde39eaab6978f8 Mon Sep 17 00:00:00 2001 From: postromantic Date: Tue, 30 Aug 2016 19:55:21 +0300 Subject: [PATCH] use local time instead of utc for atScheduling --- schedule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schedule.go b/schedule.go index 9df208f..e9f88d6 100644 --- a/schedule.go +++ b/schedule.go @@ -95,7 +95,7 @@ type atSchedule struct { // reset returns new Date based on time instant t, and reconfigure its hh:ss // according to atSchedule's hh:ss. func (as atSchedule) reset(t time.Time) time.Time { - return time.Date(t.Year(), t.Month(), t.Day(), as.hh, as.mm, 0, 0, time.UTC) + return time.Date(t.Year(), t.Month(), t.Day(), as.hh, as.mm, 0, 0, t.Location()) } // Next returns **next** time.