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:
Latif Khalifa
2011-06-10 11:53:08 +00:00
parent 73c2a836c3
commit ab15645ace
2 changed files with 4 additions and 4 deletions

View File

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