Jump to content

Users Time-zone


PHPfolife

Recommended Posts

Hello,

 

How do I get users time-zone and set the environment with a cookie so the script reads that time-zone if a cookie exists?

 

I assume the best bet would be with javascript and php right?

 


	<script language="JavaScript"> 
		var curDateTime = new Date() 
		document.write("Your Time zone is:  ") 
		document.write(-(curDateTime.getTimezoneOffset()/60)) 
	</script>	

 

This is what i have now. Any solution?

 

Thanks

 

 

Link to comment
https://forums.phpfreaks.com/topic/125531-users-time-zone/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.