FluorineFx.NET

Date & DateWrapper

Flash Remoting uses Universal Time Coordinate (UTC) date format (the number of milliseconds that have passed since midnight, January 1, 1970 Greenwich Mean Time).


Time zone compensation allows dates being adjusted with the time zone information sent by the Flash player. Also for dates sent back it will be subtracted from the date and sent to the Flash application.


Without time zone compensation (default) the DateWrapper class should be used to extract time zone information.

Note: DateWrapper uses time zone in the last Date encountered during deserialization!


Specifying time zone compensation in the application configuration file:

< appSettings>
< add key="timezoneCompensation" value="none"/>
< add key="timezoneCompensation" value="auto"/>
</appSettings>


DateWrapper class


//Gets the client time zone.
static TimeSpan DateWrapper.ClientTimeZone

//Gets the server time zone.
static TimeSpan DateWrapper.ServerTimeZone

//Gets the date according to client time zone.
static DateTime DateWrapper.GetClientDate(date)

//Gets the date according to server time zone.
static DateTime DateWrapper.GetServerDate(date)