Skip to content

use local time instead of utc for atScheduling#2

Open
postromantic wants to merge 1 commit into
roylee0704:masterfrom
postromantic:master
Open

use local time instead of utc for atScheduling#2
postromantic wants to merge 1 commit into
roylee0704:masterfrom
postromantic:master

Conversation

@postromantic

Copy link
Copy Markdown

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

roylee0704 commented Aug 31, 2016

Copy link
Copy Markdown
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants