Ask a Question related to ASP.NET Web Services, Design and Development.
-
Borr #1
DateTime parameter is adjusted according to timezone
Hi,
I encountered a following problem : I have a web service,
and one of its methods gets parameter of DateTime type. My
server is found in another timezone, and it turns out that
DateTime that I pass from my client application arrives in
the server being adjusted according to difference of
timezones between client and server ! I am found 6 hours
east from the server - so DateTime that my web method gets
differs from DateTime I passed from the client application
by 6 hours.
Is it possible to cancel this adjust ? I want my web
service to get DateTime parameters "as is".
Best regards
Borr
Borr Guest
-
#40743 [Opn->Asn]: DateTime ignores the TimeZone object passed to the constructor
ID: 40743 Updated by: derick@php.net Reported By: ddb at bitxtender dot de -Status: Open +Status: ... -
ANNOUNCE: DateTime::TimeZone 0.44
0.44 2006-04-17 - This release is based on version 2006d of the Olson database. /*===================================================... -
ANNOUNCE: DateTime::TimeZone 0.43
0.43 2006-04-13 - This release is based on version 2006c of the Olson database. - Added a link for AKST9AKDT (to America/Anchorage). ... -
DateTime - default Timezone ?
Hi I can't seem to find a way to set a default timezone for all new DateTime objects. There's a class method for setting the default locale, but... -
DateTime being adjusted for time zone differences
When a client is in one time zone and sends a dataset through our webservice which is in another timezone, it is adjusting the time values on all... -
Dino Chiesa [Microsoft] #2
Re: DateTime parameter is adjusted according to timezone
This is a FAQ.
add
[XmlElement(DataType="date")]
to the DateTime field, it will serialize as an XML Schema "date".
Check the archives for more details.
-Dino
"Borr" <borisgur@excite.com> wrote in message
news:066b01c39d5c$4512d500$a001280a@phx.gbl...> Hi,
>
> I encountered a following problem : I have a web service,
> and one of its methods gets parameter of DateTime type. My
> server is found in another timezone, and it turns out that
> DateTime that I pass from my client application arrives in
> the server being adjusted according to difference of
> timezones between client and server ! I am found 6 hours
> east from the server - so DateTime that my web method gets
> differs from DateTime I passed from the client application
> by 6 hours.
>
> Is it possible to cancel this adjust ? I want my web
> service to get DateTime parameters "as is".
>
> Best regards
>
> Borr
>
Dino Chiesa [Microsoft] Guest



Reply With Quote

