OK, here's my issue I use following page to get the user timezone
<html>
<head>
<script src="/js/jquery-2.1.4.js"></script>
<script src="/js/jstz-1.0.4.min.js"></script>
</head>
<body>
<form id="tz-form" action="{{ URL::to('/') }}" method="post">
<input id="tz" type="hidden" name="timezone" value="">
</form>
<script>
$(document).ready(function(){
var timezone = jstz.determine();
$('#tz').val(timezone.name());
$('#tz-form').submit();
});
</script>
</body>
</html>
when I run the application firebug shows me following errors
- SyntaxError: expected expression, got '<' html tag
- ReferenceError: PhpDebugBar is not defined var phpdebugbar = new PhpDebugBar.DebugBar(); TypeError: $ is not a function
- $('#tz').val(timezone.name());
I'm using laravel 5.1 and barryvdh/laravel-debugbar. Thank you