Author: mkestner
Date: 2006-01-14 09:07:27 -0500 (Sat, 14 Jan 2006)
New Revision: 55575
Modified:
trunk/gtk-sharp/ChangeLog
trunk/gtk-sharp/glib/Marshaller.cs
Log:
2005-01-13 Mike Kestner <[EMAIL PROTECTED]>
* glib/Marshaller.cs : subtract utc_offset when marshaling to time_t.
[Fixes #77244]
Modified: trunk/gtk-sharp/ChangeLog
===================================================================
--- trunk/gtk-sharp/ChangeLog 2006-01-14 10:15:26 UTC (rev 55574)
+++ trunk/gtk-sharp/ChangeLog 2006-01-14 14:07:27 UTC (rev 55575)
@@ -1,3 +1,8 @@
+2005-01-13 Mike Kestner <[EMAIL PROTECTED]>
+
+ * glib/Marshaller.cs : subtract utc_offset when marshaling to time_t.
+ [Fixes #77244]
+
2005-01-12 Mike Kestner <[EMAIL PROTECTED]>
* sources/MethodBody.cs : use Utf8.GetByteCount for hidden len params.
Modified: trunk/gtk-sharp/glib/Marshaller.cs
===================================================================
--- trunk/gtk-sharp/glib/Marshaller.cs 2006-01-14 10:15:26 UTC (rev 55574)
+++ trunk/gtk-sharp/glib/Marshaller.cs 2006-01-14 14:07:27 UTC (rev 55575)
@@ -242,7 +242,7 @@
public static IntPtr DateTimeTotime_t (DateTime time)
{
- return new IntPtr (((int)time.Subtract
(local_epoch).TotalSeconds));
+ return new IntPtr (((int)time.Subtract
(local_epoch).TotalSeconds) - utc_offset);
}
public static DateTime time_tToDateTime (IntPtr time_t)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches