[longomatch] Return date in UTC from the DatePicker
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Return date in UTC from the DatePicker
- Date: Wed, 7 Jan 2015 13:31:30 +0000 (UTC)
commit 27a78e126de1769629c20d84f420512a97ef8c78
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Jan 7 14:30:31 2015 +0100
Return date in UTC from the DatePicker
Otherwise 2/1/2015 00:00 +1 becomes 1/1/2015 23:00 Z
after being serialized
LongoMatch.GUI/Gui/Dialog/CalendarDialog.cs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Dialog/CalendarDialog.cs b/LongoMatch.GUI/Gui/Dialog/CalendarDialog.cs
index a690fd9..929f4b7 100644
--- a/LongoMatch.GUI/Gui/Dialog/CalendarDialog.cs
+++ b/LongoMatch.GUI/Gui/Dialog/CalendarDialog.cs
@@ -50,7 +50,8 @@ namespace LongoMatch.Gui.Dialog
protected virtual void OnCalendar1DaySelected(object sender, System.EventArgs e)
{
- selectedDate = calendar1.Date;
+ DateTime d = calendar1.Date;
+ selectedDate = new DateTime (d.Year, d.Month, d.Day, 0, 0, 0, DateTimeKind.Utc);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]