bcoffin Posted April 17, 2007 Share Posted April 17, 2007 Can somebody recommend a good way to convert a HOST_ADDR to a TIMEZONE? 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, 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.. 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 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. 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 Link to comment https://forums.phpfreaks.com/topic/47449-timezone-by-client-ip/#findComment-231714 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.