From 3126abe9ac3e3ad4e5c7992cbb9feda911657039 Mon Sep 17 00:00:00 2001 From: thlo Date: Sun, 16 Mar 2014 12:01:49 +0100 Subject: vdrUtcTime added to vdrStatus.xml. --- responsememblk.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/responsememblk.c b/responsememblk.c index e847f38..225c23b 100755 --- a/responsememblk.c +++ b/responsememblk.c @@ -1876,10 +1876,13 @@ int cResponseMemBlk::sendVdrStatusXml (struct stat *statbuf) { *mResponseMessage += "\n"; now = time(NULL); + snprintf(f, sizeof(f), "%ld\n", now); + *mResponseMessage += f; + strftime(timebuf, sizeof(timebuf), "%Y-%m-%dT%H:%M:%S", localtime(&now)); // ISO 8601 snprintf(f, sizeof(f), "%s\n", timebuf); *mResponseMessage += f; - + *mResponseMessage += "\n"; snprintf(f, sizeof(f), "%d", free); *mResponseMessage += f; -- cgit v1.2.3