Problem running timezone

55 views
Skip to first unread message

Rui Fernandes

unread,
Oct 27, 2015, 5:03:25 AM10/27/15
to timezone-js
Hi,

I've made a simple test with this library - but I must have done womething wrong... Here's the html page I've made:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Teste</title>
<script type="text/javascript" src="date.js">
<script type="text/javascript" src="jquery-1.11.3.js">
</head>
<body>
<script>
timezoneJS.timezone.zoneFileBasePath = '/tzdata2015g';
timezoneJS.timezone.init({ callback: cb });
var dt = new timezoneJS.Date(2006, 9, 29, 2, 0, 'America/Los_Angeles');
dt.getTimezoneOffset();
alert(dt);
</script>
</body>
</html>

Nothing happens!... Not even an empty alert message. And no error in Chrome developer console.

Can someone help please?

Cheers

Kishor Pawar

unread,
Oct 28, 2015, 2:25:31 AM10/28/15
to timezone-js

You need to do this
<script type="text/javascript" src="date.js" > </scipt>
<script type="text/javascript" src="jquery-1.11.3.js"> </scipt>
Reply all
Reply to author
Forward
0 new messages