* Context.cs: fix the calculation of the unix time.
svn path=/trunk/mcs/; revision=77892
+2007-05-23 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
+
+ * Context.cs: fix the calculation of the unix time.
+
2007-05-09 Sebastien Pouliot <sebastien@ximian.com>
* HttpsClientStream.cs: Add support for client certificates from
{
DateTime now = DateTime.UtcNow;
- return (int)(now.Ticks - UNIX_BASE_TICKS / TimeSpan.TicksPerSecond);
+ return (int)((now.Ticks - UNIX_BASE_TICKS) / TimeSpan.TicksPerSecond);
}
public byte[] GetSecureRandomBytes(int count)