LIBOMV-913: OSDDate does not properly serialize/deserialize
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3547 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -687,7 +687,7 @@ namespace OpenMetaverse.StructuredData
|
||||
public override byte[] AsBinary()
|
||||
{
|
||||
TimeSpan ts = value.ToUniversalTime() - new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
|
||||
return Utils.DoubleToBytesBig(ts.TotalSeconds);
|
||||
return Utils.DoubleToBytes(ts.TotalSeconds);
|
||||
}
|
||||
|
||||
public override DateTime AsDate() { return value; }
|
||||
|
||||
Reference in New Issue
Block a user