Hello All:

We have a web application being developed for Pocket PC with ASP.NET mobile
controls. The application is hosted on a webserver and is accessed through
the Pocket IE. The issue is in the javascript being used in the login page.

Whenever the timezone is changed on the device, to the one where the
Daylight savings time are applicable, the "new Date()" call in the javascript
returns the correct DateTime object for the first time. By correct i mean
after adjusting the Daylight savings changes. but next time onwards the same
call "new Date()" returns the DateTime object without applying daylight
savings changes.

function GetClientUTC()
{
var now = new Date();
alert(now);
var now2 = new Date();
alert(now2);
}

For e.g. I changed the time zone on the handheld to GMT +02:00 Bucharest,
the time displayed on the handheld is 4:14 PM. Now when this function gets
executed for the first time "now" returns correct date time with time as
4:14PM but "now2" returns datetime with time as 3:14PM. Next time when the
same function gets executed both "now" and "now2" return the same datetime
with time as 3:14PM.

Note: 4:14PM is after adjusting for daylight savings and 3:14PM is without.


Any help on this issue will be highly appreciated.