diff options
author | Sean Dague | 2009-06-29 15:05:12 +0000 |
---|---|---|
committer | Sean Dague | 2009-06-29 15:05:12 +0000 |
commit | 3dc2010da6412941bfbcdb29007b12a8f37b7bef (patch) | |
tree | f9fa0ad53b712d91d8fcc21aa6513c8a94dd4bf4 /OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs | |
parent | Thank you kindly, Godfrey, for a patch that: (diff) | |
download | opensim-SC_OLD-3dc2010da6412941bfbcdb29007b12a8f37b7bef.zip opensim-SC_OLD-3dc2010da6412941bfbcdb29007b12a8f37b7bef.tar.gz opensim-SC_OLD-3dc2010da6412941bfbcdb29007b12a8f37b7bef.tar.bz2 opensim-SC_OLD-3dc2010da6412941bfbcdb29007b12a8f37b7bef.tar.xz |
From: Chris Yeoh <yeohc@au1.ibm.com>
Attached is a patch that changes the oar file saving of creation date/time to an integer
instead of a string. I did this after justincc emailed me saying there is a problem
with internationalisation doing it the old way and I said I'd fix it. Its been
tested with MySQL and I've made the changes for MSSQL but that hasn't been well tested.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs b/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs index ac5d067..a62c5b3 100644 --- a/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs +++ b/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs | |||
@@ -152,12 +152,12 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
152 | xtw.WriteStartDocument(); | 152 | xtw.WriteStartDocument(); |
153 | xtw.WriteStartElement("archive"); | 153 | xtw.WriteStartElement("archive"); |
154 | xtw.WriteAttributeString("major_version", "0"); | 154 | xtw.WriteAttributeString("major_version", "0"); |
155 | xtw.WriteAttributeString("minor_version", "2"); | 155 | xtw.WriteAttributeString("minor_version", "3"); |
156 | 156 | ||
157 | xtw.WriteStartElement("creation_info"); | 157 | xtw.WriteStartElement("creation_info"); |
158 | DateTime now = DateTime.UtcNow; | 158 | DateTime now = DateTime.UtcNow; |
159 | xtw.WriteElementString("date", now.ToLongDateString()); | 159 | TimeSpan t = now - new DateTime(1970, 1, 1); |
160 | xtw.WriteElementString("time", now.ToLongTimeString()); | 160 | xtw.WriteElementString("datetime", ((int)t.TotalSeconds).ToString()); |
161 | xtw.WriteElementString("id", UUID.Random().ToString()); | 161 | xtw.WriteElementString("id", UUID.Random().ToString()); |
162 | xtw.WriteEndElement(); | 162 | xtw.WriteEndElement(); |
163 | xtw.WriteEndElement(); | 163 | xtw.WriteEndElement(); |