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

Delay a job until a specific DateTime? #185

Closed
StephenOTT opened this issue May 5, 2014 · 2 comments
Closed

Delay a job until a specific DateTime? #185

StephenOTT opened this issue May 5, 2014 · 2 comments

Comments

@StephenOTT
Copy link

Can a job be delayed to a specific DateTime? Is there timezone support?

@dlecocq
Copy link
Contributor

dlecocq commented May 5, 2014

Yes, though only by calculating the number of seconds from now until the desired DateTime. WRT timezone support, the current time is calculated with Time.now.to_f (https://github.com/seomoz/qless/blob/master/lib/qless.rb#L202), so any timezone support is the user's responsibility.

@StephenOTT
Copy link
Author

@dlecocq thanks!

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