Click to See Complete Forum and Search --> : getTimezoneOffset() show incorrect result


kmthien
01-02-2006, 11:13 PM
Hi guys,

dt = new Date();
dt.getTimezoneOffset();

the getTimezoneOffset() give me -8. but it should be +8 as I m currently in Singapore ! Please help, Thanks !

regards,
Mark

phpnovice
01-02-2006, 11:28 PM
Have you checked the Time Zone settings in the Date and Time Properties dialog on your PC?

kmthien
01-03-2006, 12:20 AM
u r damn right ! thanks a lot man !

phpnovice
01-03-2006, 01:00 AM
You're welcome.