roylee0704 / gron

gron, Cron Jobs in Go.
MIT License
1.03k stars 62 forks source link

use local time instead of utc for atScheduling #2

Open postromantic opened 8 years ago

postromantic commented 8 years ago

I got GMT+3 time zone, so when i write gron.Every(1 * xtime.Day).At("19:32") i expect function will be triggered at 19:32 local time, not UTC time (which is 3 hours difference in my case). Tests are green, looks like no side effects.

roylee0704 commented 8 years ago

@postromantic Good catch! I'm considering a parameter for time.location, what do you think of that? :)