SiT! Bugs

View Revisions: Issue #577 All Revisions ] Back to Issue ]
Summary 0000577: Scheduler not running when local time zone is different than server time zone.
Revision 2009-08-20 12:04 by ivan
Description When the local time is different to the server time zone the scheduer doesn't run as expected.

For example ...

If the local time is 7pm, and the server time in 12pm

auto.php runs ... set's the next run time (for inbound email) to be 7.01 pm.

on it's next run ...

it checks the next run time (7.01pm) against the server time (12.01pm) and doesn't do anything.

The script will eventually run correctly when the server time reaches 7.01pm.

(I presume if the time different is the other way around some scripts will run too often)




My local time zone is GMT+0 my hosted server is GMT-7. When the script runs it updates the next run time to be my local time + 1 minute, cron runs auto.php every minute but auto.php won't do anything because the next run time is 7 hours away.

I've tried changing the shell time zone with export TZ=GMT+0

I've tired changing the php time zone using putenv("TZ=EUROPE/DUBLIN");

Any other suggestions?

Thanks.
Revision 2009-08-20 12:04 by ivan
Description
When the local time is different to the server time zone the scheduer doesn't run as expected.

For example ...

If the local time is 7pm, and the server time in 12pm

auto.php runs ... set's the next run time (for inbound email) to be 7.01 pm.

on it's next run ...

it checks the next run time (7.01pm) against the server time (12.01pm) and doesn't do anything.

The script will eventually run correctly when the server time reaches 7.01pm.

(I presume if the time different is the other way around some scripts will run too often)




My local time zone is GMT+0 my hosted server is GMT-7. When the script runs it updates the next run time to be my local time + 1 minute, cron runs auto.php every minute but auto.php won't do anything because the next run time is 7 hours away.

I've tried changing the shell time zone with export TZ=GMT+0

I've tired changing the php time zone using putenv("TZ=EUROPE/DUBLIN");

Any other suggestions?

Thanks.


Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker