06-15-2011 08:04 PM
Hi,
I have a problem with the offset function of the date object. For some reason when I set the Blackberry timezone above GMT+0000 ( say GMT+0400), and run date.getTimezoneOffset() I only get 0.
My offset function:
function formatOffset(date) {
var offset = -date.getTimezoneOffset() / 60;
return offset;
}