bcoffin Posted April 17, 2007 Share Posted April 17, 2007 Can somebody recommend a good way to convert a HOST_ADDR to a TIMEZONE? Quote Link to comment https://forums.phpfreaks.com/topic/47449-timezone-by-client-ip/ Share on other sites More sharing options...
MadTechie Posted April 17, 2007 Share Posted April 17, 2007 your need to connect lookup the IP in the ISP sets and then get their country and time.. this means a large database or connecting to someone elses most likely a paid for service, Quote Link to comment https://forums.phpfreaks.com/topic/47449-timezone-by-client-ip/#findComment-231527 Share on other sites More sharing options...
bcoffin Posted April 17, 2007 Author Share Posted April 17, 2007 Rats.. thought you might say that. Localtime isn't communicated through server/session obj is it.. Quote Link to comment https://forums.phpfreaks.com/topic/47449-timezone-by-client-ip/#findComment-231627 Share on other sites More sharing options...
MadTechie Posted April 17, 2007 Share Posted April 17, 2007 Not as far as i'm aware.. you could try some javascript, of course that will only show from the clients end Quote Link to comment https://forums.phpfreaks.com/topic/47449-timezone-by-client-ip/#findComment-231641 Share on other sites More sharing options...
bcoffin Posted April 17, 2007 Author Share Posted April 17, 2007 Hmm... not a bad idea. Populate a hidden text field with current client time. Parse with PHP to get timezone by stamp... You're a smart guy. Quote Link to comment https://forums.phpfreaks.com/topic/47449-timezone-by-client-ip/#findComment-231679 Share on other sites More sharing options...
MadTechie Posted April 17, 2007 Share Posted April 17, 2007 well i though cookies but still same old same old Quote Link to comment https://forums.phpfreaks.com/topic/47449-timezone-by-client-ip/#findComment-231714 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.