aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/RegionSettings.cs
diff options
context:
space:
mode:
authorSean Dague2009-06-29 15:05:12 +0000
committerSean Dague2009-06-29 15:05:12 +0000
commit3dc2010da6412941bfbcdb29007b12a8f37b7bef (patch)
treef9fa0ad53b712d91d8fcc21aa6513c8a94dd4bf4 /OpenSim/Framework/RegionSettings.cs
parentThank you kindly, Godfrey, for a patch that: (diff)
downloadopensim-SC-3dc2010da6412941bfbcdb29007b12a8f37b7bef.zip
opensim-SC-3dc2010da6412941bfbcdb29007b12a8f37b7bef.tar.gz
opensim-SC-3dc2010da6412941bfbcdb29007b12a8f37b7bef.tar.bz2
opensim-SC-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 'OpenSim/Framework/RegionSettings.cs')
-rw-r--r--OpenSim/Framework/RegionSettings.cs25
1 files changed, 18 insertions, 7 deletions
diff --git a/OpenSim/Framework/RegionSettings.cs b/OpenSim/Framework/RegionSettings.cs
index c05cc10..8d1212b 100644
--- a/OpenSim/Framework/RegionSettings.cs
+++ b/OpenSim/Framework/RegionSettings.cs
@@ -561,20 +561,31 @@ namespace OpenSim.Framework
561 set { m_Covenant = value; } 561 set { m_Covenant = value; }
562 } 562 }
563 563
564 private String m_LoadedCreationDate; 564 private int m_LoadedCreationDateTime;
565 public int LoadedCreationDateTime
566 {
567 get { return m_LoadedCreationDateTime; }
568 set { m_LoadedCreationDateTime = value; }
569 }
565 570
566 public String LoadedCreationDate 571 public String LoadedCreationDate
567 { 572 {
568 get { return m_LoadedCreationDate; } 573 get
569 set { m_LoadedCreationDate = value; } 574 {
575 TimeSpan ts = new TimeSpan(0, 0, LoadedCreationDateTime);
576 DateTime stamp = new DateTime(1970, 1, 1) + ts;
577 return stamp.ToLongDateString();
578 }
570 } 579 }
571 580
572 private String m_LoadedCreationTime;
573
574 public String LoadedCreationTime 581 public String LoadedCreationTime
575 { 582 {
576 get { return m_LoadedCreationTime; } 583 get
577 set { m_LoadedCreationTime = value; } 584 {
585 TimeSpan ts = new TimeSpan(0, 0, LoadedCreationDateTime);
586 DateTime stamp = new DateTime(1970, 1, 1) + ts;
587 return stamp.ToLongTimeString();
588 }
578 } 589 }
579 590
580 private String m_LoadedCreationID; 591 private String m_LoadedCreationID;