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

  • SEARCH
  • Home
  • 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 7004695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:13:56+00:00 2026-05-27T21:13:56+00:00

Just a quick question on working with International Timezones & GMT. I have an

  • 0

Just a quick question on working with International Timezones & GMT.

I have an app that needs to send out an email at a certain time (6am) for every person internationally based on their time/zone GMT +-. I’m at a loss on how this should be handled with GMT & Timezones. Any input is appreciated.

  • 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-05-27T21:13:56+00:00Added an answer on May 27, 2026 at 9:13 pm

    Naïvely, you could collect (or somehow determine) a time zone ID (tzid) for each of your users, and simply run a cron job at the top of every UTC hour checking if the current time is 06:00 in any of those zones.

    It’s not that easy, though, because there are several time zones that don’t have whole-hour offsets from UTC, such as America/St_Johns (UTC-03:30) and Asia/Kathmandu (UTC+05:45), and these users wouldn’t get any emails if you only ran the cron hourly. So you might want to run the cron every quarter-hour just to be on the safe side.

    But since cron jobs often start a few seconds after they’re scheduled to run, you shouldn’t be testing for equality with 06:00:00. Furthermore, time zones don’t have to be in quarter-hour increments (but thankfully, all commonly recognized zones are), so to be pedantic, you might want to evaluate whether the current time falls within a certain window.

    If, for example, you’re running your cron every 15 minutes, make that window 15 minutes wide (e.g., 05:55 to 06:10) to be sure to catch the edge cases. There’s still the theoretical chance that a cron run could be skipped… but without storing additional data that indicates whether or not someone has yet been sent today’s email (and making up the difference if they haven’t), that’s about the best you can do.

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

Sidebar

Related Questions

Just a quick question: I'm working on revamping a script that serves vehicle inventory
I've just got a quick question that if you have time would be great
Working with JQuery Validator and just have a quick question. I'm using addMethod to
Quick question, I am working on an APNS enabled app and I just want
I am working with a huge list of URL's. Just a quick question I
just a quick question: I am a CS undergrad and have only had experience
just a quick question, if I have a matrix has n rows and m
Just a quick question about best practice in MVC development. Let's say that I've
I have been working on a quick WinForms program. I found this SO question
My Quick Question is this: Everything seems to be working, except that Trac tickets

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.