mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
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.
This commit is contained in:
@@ -561,20 +561,31 @@ namespace OpenSim.Framework
|
||||
set { m_Covenant = value; }
|
||||
}
|
||||
|
||||
private String m_LoadedCreationDate;
|
||||
private int m_LoadedCreationDateTime;
|
||||
public int LoadedCreationDateTime
|
||||
{
|
||||
get { return m_LoadedCreationDateTime; }
|
||||
set { m_LoadedCreationDateTime = value; }
|
||||
}
|
||||
|
||||
public String LoadedCreationDate
|
||||
{
|
||||
get { return m_LoadedCreationDate; }
|
||||
set { m_LoadedCreationDate = value; }
|
||||
get
|
||||
{
|
||||
TimeSpan ts = new TimeSpan(0, 0, LoadedCreationDateTime);
|
||||
DateTime stamp = new DateTime(1970, 1, 1) + ts;
|
||||
return stamp.ToLongDateString();
|
||||
}
|
||||
}
|
||||
|
||||
private String m_LoadedCreationTime;
|
||||
|
||||
public String LoadedCreationTime
|
||||
{
|
||||
get { return m_LoadedCreationTime; }
|
||||
set { m_LoadedCreationTime = value; }
|
||||
get
|
||||
{
|
||||
TimeSpan ts = new TimeSpan(0, 0, LoadedCreationDateTime);
|
||||
DateTime stamp = new DateTime(1970, 1, 1) + ts;
|
||||
return stamp.ToLongTimeString();
|
||||
}
|
||||
}
|
||||
|
||||
private String m_LoadedCreationID;
|
||||
|
||||
Reference in New Issue
Block a user