From 1d58254625bc6bfc5decc35dd97709f99f7eb00d Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Fri, 16 Jul 2010 14:19:03 +0000 Subject: [PATCH] Date formatting improved --- Builder/IISMainHandler/build.txt | 2 +- Common/UserContext.cs | 3 +- IISMainHandler/handlers/AbstractGetHandler.cs | 2 +- templates/Full/elems/Header.xslt | 8 ++--- templates/Full/elems/Main.xslt | 34 +++++++++++++------ 5 files changed, 32 insertions(+), 17 deletions(-) diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index c5befbc..a0e999a 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -856 \ No newline at end of file +860 \ No newline at end of file diff --git a/Common/UserContext.cs b/Common/UserContext.cs index 17cdbad..8264973 100644 --- a/Common/UserContext.cs +++ b/Common/UserContext.cs @@ -45,7 +45,8 @@ namespace FLocal.Common { new XElement("mday", dateTime.Day), new XElement("hour", dateTime.Hour), new XElement("minute", dateTime.Minute), - new XElement("second", dateTime.Second) + new XElement("second", dateTime.Second), + new XElement("ticks", dateTime.Ticks) ); } diff --git a/IISMainHandler/handlers/AbstractGetHandler.cs b/IISMainHandler/handlers/AbstractGetHandler.cs index 8471d3d..596e4fa 100644 --- a/IISMainHandler/handlers/AbstractGetHandler.cs +++ b/IISMainHandler/handlers/AbstractGetHandler.cs @@ -19,7 +19,7 @@ namespace FLocal.IISHandler.handlers { new XElement("root", this.getSpecificData(context), new XElement("title", Config.instance.AppInfo), - new XElement("timestamp", DateTime.Now.Ticks.ToString()), + new XElement("current", DateTime.Now.ToXml()), context.exportSession(), context.userSettings.skin.exportToXml() ) diff --git a/templates/Full/elems/Header.xslt b/templates/Full/elems/Header.xslt index f71e4ad..0514d4e 100644 --- a/templates/Full/elems/Header.xslt +++ b/templates/Full/elems/Header.xslt @@ -35,13 +35,13 @@