DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old February 11th, 2004, 11:38 PM
kidio kidio is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Kuala Lumpur, Malaysia
Posts: 4 kidio User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Just an Idea - IP Address, Timezone and Client's Local Time

Hey ... I have this idea ...

Not that I have any use of it right now, but I was thinking about how you can estimate the localtime of a visitor, just in case you would like to store in the log. Maybe later then you can see what time your visitors visits you most.

Now, you can always identify your visitors IP, right. And with GeoIP or IP2Location, you determine your visitors longitude. When you know your own server's longitude, your visitors longitude and your server's current time, you can write a script to calculate the differences in the longitude degree and come out with the local time of the visitor.

Well, maybe this is not 100% accurate becuase time zones are determine by political factor as well. But I think, you can more or less determine the local time of your visitors, where ever he's logging to your website from.

There you go ... just a thought.

Reply With Quote
  #2  
Old February 12th, 2004, 12:17 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 8 m 45 sec
Reputation Power: 27
well in some cases this will work but most of those GeoIP and IP2Location things will show me being in Sydney when I am infact in Perth, which has 2 hours time difference (+1 in summer due to day light savings time).

This is due to our internet connection being with a telco who routes traffic via Sydney

Reply With Quote
  #3  
Old February 13th, 2004, 08:35 AM
kidio kidio is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Kuala Lumpur, Malaysia
Posts: 4 kidio User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yeah ... I guess you are right. But I think this is as close as you get to getting the local time off the client ...

Reply With Quote
  #4  
Old February 13th, 2004, 08:55 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
depends on the situation. and whether they support javascript and perhaps cookies.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

Reply With Quote
  #5  
Old February 13th, 2004, 07:07 PM
kidio kidio is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Kuala Lumpur, Malaysia
Posts: 4 kidio User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by SilentRage
depends on the situation. and whether they support javascript and perhaps cookies.

Javascript and Cookie ... why would you need that? I think all the programming can be done at server side with things like PHP / ASP / or what ever ....

Reply With Quote
  #6  
Old February 13th, 2004, 07:58 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
only if you insist on using the IP to determine time zone. It's far more efficient if you would just ask the user to provide their time zone in their profile in the case of an account system. Your second best option is using javascript and optionally cookies to feed the user's current time to the server via a script and then calculate time zone and store it in a file associating the info to that IP. It's far easier, more efficient, and more accurate.

Reply With Quote
  #7  
Old July 17th, 2008, 02:07 AM
Vilice Vilice is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2008
Posts: 21 Vilice User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 45 m 50 sec
Reputation Power: 0
Orkut
depend on the internet connection ,cookies and so on ...

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Just an Idea - IP Address, Timezone and Client's Local Time


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway