WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH 1 of 3] [oxenstored] Use iso8601-like string format and

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH 1 of 3] [oxenstored] Use iso8601-like string format and GMT timezone in xenstored-access.log
From: Thomas Gazagnaire <thomas.gazagnaire@xxxxxxxxxx>
Date: Wed, 9 Dec 2009 11:16:19 +0000
Delivery-date: Wed, 09 Dec 2009 03:13:47 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1260357378@steel>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Thomas Gazagnaire <thomas.gazagnaire@xxxxxxxxxx>
# Date 1260355967 0
# Node ID 5f26cdb61a6b90a1c4e8da3126ae6f01b1de7c44
# Parent  bc11307f04da676e5353ec51393f2daa2da3d2f2
[oxenstored] Use iso8601-like string format and GMT timezone in 
xenstored-access.log

Signed-off-by: Thomas Gazagnaire <thomas.gazagnaire@xxxxxxxxxx>

diff -r bc11307f04da -r 5f26cdb61a6b ocaml/xenstored/logging.ml
--- a/ocaml/xenstored/logging.ml        Wed Dec 09 10:52:46 2009 +0000
+++ b/ocaml/xenstored/logging.ml        Wed Dec 09 10:52:47 2009 +0000
@@ -46,9 +46,9 @@
 
 let string_of_date () =
        let time = Unix.gettimeofday () in
-       let tm = Unix.localtime time in
+       let tm = Unix.gmtime time in
        let msec = time -. (floor time) in
-       sprintf "%d%.2d%.2d %.2d:%.2d:%.2d.%.3d" (1900 + tm.Unix.tm_year)
+       sprintf "%d%.2d%.2dT%.2d:%.2d:%.2d.%.3dZ" (1900 + tm.Unix.tm_year)
                (tm.Unix.tm_mon + 1)
                tm.Unix.tm_mday
                tm.Unix.tm_hour
1 file changed, 2 insertions(+), 2 deletions(-)
ocaml/xenstored/logging.ml |    4 ++--


Attachment: xen-api.hg-3.patch
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>