2005-01-13 Mike Kestner <mkestner@novell.com>

* glib/Marshaller.cs : subtract utc_offset when marshaling to time_t.
	[Fixes #77244]

svn path=/trunk/gtk-sharp/; revision=55575
This commit is contained in:
Mike Kestner 2006-01-14 14:07:27 +00:00
parent 0486846a0e
commit e1d8403f5d
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-01-13 Mike Kestner <mkestner@novell.com>
* glib/Marshaller.cs : subtract utc_offset when marshaling to time_t.
[Fixes #77244]
2005-01-12 Mike Kestner <mkestner@novell.com>
* sources/MethodBody.cs : use Utf8.GetByteCount for hidden len params.

View file

@ -242,7 +242,7 @@ namespace GLib {
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)