From a8f16beaa71ff091b92ce31d4793a0fff8033410 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Tue, 1 Feb 2005 22:35:48 +0000 Subject: [PATCH] 2005-02-01 Fredrik Nilsson * glib/Marshaller.cs : DateTime marshaling fix. svn path=/trunk/gtk-sharp/; revision=39952 --- ChangeLog | 4 ++++ glib/Marshaller.cs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cf35e8252..5e5e30f22 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-02-01 Fredrik Nilsson + + * glib/Marshaller.cs : DateTime marshaling fix. + 2005-01-31 Mike Kestner * gtk/FileChooserDialog.custom : move backend to first param to diff --git a/glib/Marshaller.cs b/glib/Marshaller.cs index 2f7554ce1..49d201536 100644 --- a/glib/Marshaller.cs +++ b/glib/Marshaller.cs @@ -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) {