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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:40:12+00:00 2026-05-16T01:40:12+00:00

For my project(a web and iPhone based application) i need to collect a user’s

  • 0

For my project(a web and iPhone based application) i need to collect a user’s timezone so as to show him/her the relevant data.Some of the possibilities that I can think of are :

1.Getting it using user’s IP (But what if the user is behind a proxy server)
2.Sending it with request params(But that will require extra param to be attached with request. Or may be collecting once for a session)
3.Passing it through cookies(Has same implication as setting in the parameters)
4.Based on user’s zip code which I am collecting at the time of registeration but for unregistered user’s that can browse through the app will not be able to see the relevant data.

So all in all each approach that I can think of now has one or more drawbacks. I just want to know what other approaches are there and which one is the best to use in such a case where user experience is not affected and user is not explicitly asked about his/her timezone.Also the approach should apply to both web and iPhone.

  • 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-16T01:40:13+00:00Added an answer on May 16, 2026 at 1:40 am

    I would collect the user’s current time using JavaScript, and send it along the first request to last for the whole session.

    You’ll have to allow for deviations (Maybe +- 15 minutes) but it should be possible to determine the time zone pretty reliably this way.

    The next best thing is probably indeed running the user’s IP through a geolocation service to find out the country. However, you’ll have to maintain a country-to-timezone map to do this properly, and you will have problems with countries that have multiple time zones like the United States or Russia.

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

Sidebar

Related Questions

I am working in a iPhone project that uses restful web services. I need
Hai all, In my iphone project i need to pass the user name and
I am starting a new project where we need to make entering web data
I am creating iphone application which will require data from .NET web services. I
I'm learning how to consume web services for a student project using the iPhone.
I'm writing an iPhone app as a hobby project and it will need a
I have an project in which i retrieve data from user and save in
I'm new to iPhone development, coming from a web application development background and I'm
I am starting to use phonegap to create a web based application for iphones/androids.
I have an application in which I change the data on web and then

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.