[longomatch] Force UTC for real



commit 09a6fb16d09dfe224326a37c953c2fc259fc21eb
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Oct 14 18:18:34 2014 +0200

    Force UTC for real

 LongoMatch.Core/Store/ProjectDescription.cs |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/LongoMatch.Core/Store/ProjectDescription.cs b/LongoMatch.Core/Store/ProjectDescription.cs
index d000e11..59729ff 100644
--- a/LongoMatch.Core/Store/ProjectDescription.cs
+++ b/LongoMatch.Core/Store/ProjectDescription.cs
@@ -30,6 +30,8 @@ namespace LongoMatch.Core.Store
        [Serializable]
        public class ProjectDescription :  IComparable, IIDObject
        {
+               DateTime matchDate, lastModified;
+
                /// <summary>
                /// Unique ID of the parent project
                /// </summary>
@@ -126,13 +128,21 @@ namespace LongoMatch.Core.Store
                /// Date of the game
                /// </summary>
                public DateTime MatchDate {
-                       get;
-                       set;
+                       get {
+                               return matchDate;
+                       }
+                       set {
+                               matchDate = value.ToUniversalTime();
+                       }
                }
                
                public DateTime LastModified {
-                       get;
-                       set;
+                       get {
+                               return lastModified;
+                       }
+                       set {
+                               lastModified = value.ToUniversalTime();
+                       }
                }
 
                public int CompareTo(object obj) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]