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:
Sean Dague
2009-06-29 15:05:12 +00:00
parent 7545f12c5f
commit 3dc2010da6
10 changed files with 59 additions and 47 deletions

View File

@@ -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;