Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8479045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:54:59+00:00 2026-06-10T18:54:59+00:00

I need to run a CRON at midnight which auto-assigns some periodic tasks for

  • 0

I need to run a CRON at midnight which auto-assigns some periodic tasks for the people working in my company. The situation I am facing is that my company basically has offices all around US, which has more than 1 timezone. So basically I would want the job to be done timezone-specific. Also, my server is running by UTC.

If I set EDT as the base timezone (which is 4 hours behind UTC) and set the CRON to be triggered at midnight, the CRON time would be

0 0 4 * * ?

The possible way that I think can be is that instead of setting it just once, I set it to be triggered 7 times at the following times:

0 0 4 * * ? [EDT]
0 0 5 * * ? [CDT]
0 0 6 * * ? [MDT]
0 0 7 * * ? [PDT]
0 0 8 * * ? [AKDT]
0 0 9 * * ? [HADT]
0 0 10 * * ? [HST]

So once any of it triggers, it would check which of my offices come under this time zone and will do the job.

This may work, as I believe, but does anyone else have any other option instead of this?
Also, I would need to fix for the Daylight saving, which I am not really sure about how I would want to do.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:55:00+00:00Added an answer on June 10, 2026 at 6:55 pm

    I think the simplest approach would probably be to have a single job which ran once an hour, which then went through all the offices, and found any that were now on a later day to the one when the job last ran. (You’d need to maintain that, of course, along with the office’s time zone.) That would take care of the DST issue for you, and also cope with a situation when the scheduler went down for a while – the next time it came up, it would “catch up” for all the offices it had missed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to run application in every X seconds, so, as far as cron
I need to run some classic ASP locally before deployment to a legacy web
Ok so I have a cron that I need to run every 30 seconds.
Is it possible to use cron (via the whenever gem) to run tasks directly
I just acquired the paid version of Heroku's cron, in order to run some
I have a zendframework project for which i need to run a script periodically
I need to run Perl script by cron periodically (~every 3-5 minutes). I want
I have a cron job I need to run every 7 days to aggregate
I am working on a community photo sharing site, and I need some way
I need to be able to run my application through cron on a linux

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.