mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-07-17 22:37:23 +00:00
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:
parent
0486846a0e
commit
e1d8403f5d
|
@ -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>
|
2005-01-12 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
* sources/MethodBody.cs : use Utf8.GetByteCount for hidden len params.
|
* sources/MethodBody.cs : use Utf8.GetByteCount for hidden len params.
|
||||||
|
|
|
@ -242,7 +242,7 @@ namespace GLib {
|
||||||
|
|
||||||
public static IntPtr DateTimeTotime_t (DateTime time)
|
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)
|
public static DateTime time_tToDateTime (IntPtr time_t)
|
||||||
|
|
Loading…
Reference in a new issue