To illustrate, the following Administrative query which monitors ASP.NET Health Monitoring alerts shows all date and times (highlighted within red block) expressed in the local time zone of the client browser (the user). In the case of Sanibel Logic, and with many corporations, this is significant because the user may be in one time zone, while the ASP.NET web server hosting provider may be in another time zone.
Click image to enlarge...
CLICK HERE to review the online ClientTime class documentation.
CLICK HERE to download the ClientTime VS.NET 2008 source project.
To activate ClientTime, simply drop the ClientTime custom control onto the ASP.NET master page or content page, illustrated as follows:
3: <form id="form1" runat="server">
5: <asp:ScriptManager id="ScriptManager1" runat="server" AsyncPostBackTimeout="999">
7: <asp:ScriptReference Path="~/Scripts/Ajax/ModalPopup.js" />
8: <asp:ScriptReference Path="~/Scripts/Ajax/ModalPopupConfirmation.js" />
12: <slcms:ClientTime ID="cltClientTime" runat="server" />
14: <asp:HiddenField id="hflCurrentDiv" runat="server" />