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

Cron jobs running at UTC time #15

Closed
ciaranmg opened this issue Mar 7, 2014 · 2 comments
Closed

Cron jobs running at UTC time #15

ciaranmg opened this issue Mar 7, 2014 · 2 comments
Assignees

Comments

@ciaranmg
Copy link

ciaranmg commented Mar 7, 2014

I'm on Eastern US time, the server is set to ET, but the jobs are running 5 hours out of whack.

It appears the library uses the timestamp which is based off UTC time.

Is there a way to make it respect the timezone of the system it's on?

@liebig
Copy link
Owner

liebig commented Mar 10, 2014

Hi Ciaranmg, thanks for using Cron. I use CET and this works fine. Which Cron version is installed? Please update to head and try again. If you still got this problem, please provide me your Cron route code. How do you call the route? Via own server or online cron service? Can you provide me your wget or curl expression? I am sorry for the inconvenience.

@liebig liebig self-assigned this Mar 10, 2014
@ciaranmg
Copy link
Author

Ok, I'm a dumbass. The laravel application was set to UTC time. I didn't realise it had a setting for timezone.

Timezone is set in /app/config/app.php

I hope this helps someone else in the future :)

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