This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Java in General and the fly likes Locale Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Locale" Watch "Locale" New topic


Saurabh Agrawal
Ranch Hand

Joined: Oct 07, 2003
Posts: 244
Hello folks,
Can anyone tell me how can i get to know a person's time zone from his request.Actually you will suggest through Locale but locale is browser specific.A person can always be in US and change his browser locale to india and i would come to know he is in india and would show him information based on indian standards.
I am supposed to show time to every person as per his time zone.So is there any way that i can actually know where or in which country he is so that i can manipulate GMT time and show him his zone specific time.
Any piece od code for that ?

Hope to get some response in this regard,

Success is not doing extraordinary things but doing ordinary things extraordinarily well.
I agree. Here's the link:
subject: Locale
It's not a secret anymore!