Beispiel #1
0
 private static WebResponse SetTime(WebRequest request)
 {
     DateTime time = JsonDateTime.FromASPNetAjax(request.Content);
     Utility.SetLocalTime(time);
     Debug.Print("Time Set to " + time.ToUniversalTime() + " (day = " + time.Day + ")");
     return new EmptyResponse();
 }
Beispiel #2
0
 private static WebResponse GetTime(WebRequest request)
 {
     DateTime now = DateTime.Now;
     Debug.Print("Sending " + now.ToLocalTime());
     return new JsonResponse("\"" + JsonDateTime.ToASPNetAjax(now) + "\"");
 }