I am trying to use jsTimezoneDetect to automatically find the timezone set on the user's computer. Here is the code for the jsTimezoneDetect:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jstimezonedetect/1.0.4/jstz.min.js"></script>
<script>
$(document).ready(function(){
var tz = jstz.determine();
var tzname = tz.name();
$.post("../Includes/timezone.php", {timezone: tzname});
});
I need help as I am not very experienced in either PHP or Javascript. How do I add what the Javascript is finding from the user's computer to a date_defult_timezone_set() in a (example) 'Europe/London' kind of format.