Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add an method to set timezone #11

Open
recolic opened this issue Sep 28, 2020 · 2 comments
Open

[Feature Request] Add an method to set timezone #11

recolic opened this issue Sep 28, 2020 · 2 comments

Comments

@recolic
Copy link

recolic commented Sep 28, 2020

Maybe like this:

loc, _ := time.LoadLocation("Asia/Taipei")
ctab.SetLocation(loc)

https://golang.org/pkg/time/#Time.In

@sneko
Copy link

sneko commented Nov 29, 2021

Hi,

Being able to set on UTC+0 would be great. Having a Cron depending on the local time of the server can be tricky when deploying across multiple areas.

@mileusna any thoughts on the @recolic 's issue?

Thank you,

@sneko
Copy link

sneko commented Jan 7, 2022

For other reasons (needed some features) I switched to https://github.com/go-co-op/gocron which also allows specifying the timezone while accepting schedule expressions.

Thanks @mileusna for your work!

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

No branches or pull requests

2 participants