2005-02-01 Fredrik Nilsson <jymdman@home.se>

* glib/Marshaller.cs : DateTime marshaling fix.

svn path=/trunk/gtk-sharp/; revision=39952
This commit is contained in:
Mike Kestner 2005-02-01 22:35:48 +00:00
parent 6d888d8689
commit a8f16beaa7
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2005-02-01 Fredrik Nilsson <jymdman@home.se>
* glib/Marshaller.cs : DateTime marshaling fix.
2005-01-31 Mike Kestner <mkestner@novell.com>
* gtk/FileChooserDialog.custom : move backend to first param to

View file

@ -171,7 +171,7 @@ namespace GLib {
}
static DateTime local_epoch = new DateTime (1970, 1, 1, 0, 0, 0);
static int utc_offset = (int) (DateTime.Now.Subtract (DateTime.UtcNow).TotalSeconds);
static int utc_offset = (int) (TimeZone.CurrentTimeZone.GetUtcOffset (DateTime.Now)).TotalSeconds;
public static IntPtr DateTimeTotime_t (DateTime time)
{