[Javascript] Q on TimeZone

Walter Torres walter at torres.ws
Tue Sep 11 17:23:11 CDT 2001


OK, I'm a bit confused (again)

I live in Chicago, it is minus 6 hours from GMT.

But this...

	var mine = new Date();
	var TZmine = mine.getTimezoneOffset();

returns 

      300  // which is 5 hours

Shouldn't this be negative 6?

Help me understand.

Also, I need to create a new Date and define a GMT offset.

Any ideas?

Thanks

Walter




More information about the Javascript mailing list