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 6048967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:31:22+00:00 2026-05-23T07:31:22+00:00

I am trying to get a user’s timezone. I can do this, but how

  • 0

I am trying to get a user’s timezone. I can do this, but how can I identify two geographic zones with same timezone, for example Arizona timezone is UTC-07:00 same that Mountain time (US & Canada) and when I get timezone from user I only get -07:00, but I don´t know if user is in Arizona timezone or Mountain time timezone. Any hint about how to identify this?

I need something like this code in Java:

TimeZone tz = Calendar.getInstance().getTimeZone();
System.out.println("TimeZone: "+tz.getDisplayName());
System.out.println("ID: "+tz.getID());

but for javascript.

  • 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-23T07:31:22+00:00Added an answer on May 23, 2026 at 7:31 am

    Edit: I think I found a simpler answer to your problem. Look at the code at the bottom of this post.

    Well, Arizona’s time zone is the same as Mountain time zone. Therefore if someone is in Arizona time zone, they are also in Mountain time zone, and vice-versa. The two timezones are one and the same.

    If you are just looking for your user’s geographical location however, try using this relevant api in conjunction with some code that looks like this.

    Basically what is done in this code is:

    1. Your user’s machine accesses geoplugin.net, which then returns info relating to the user’s IP address.

    2. You parse the returned data and do whatever you want with it.

    Hope this helps!

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

Sidebar

Related Questions

i'm trying to get this program to break down a user defined amount of
I'm trying to get this link: <%= link_to('Edit', :action => 'manage', :id => user)
I'm trying to get the user's timezone on their first request using Zend Framework.
I am trying to get a user's SIP address so I can use a
I'm trying to get a user's ID number based on their network ID, but
I am trying to get the user id but no luck so far... echo
I'm trying to get user GUID from Active Directory. My code: DirectoryEntry entry =
I'm trying to get a user control working asynchronously, yet no matter what I
I am trying to get the user defined global hot key for my application.
I'm trying to get a list of user's friends using fb connect for the

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.