[longomatch] Use UTC datetimes for json.net
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Use UTC datetimes for json.net
- Date: Wed, 8 Oct 2014 00:12:28 +0000 (UTC)
commit b7a09cd6d0502493e0e15133abdd5cd1e2fe0d4c
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Oct 6 13:19:07 2014 +0200
Use UTC datetimes for json.net
LongoMatch.Services/Services/DataBase.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Services/Services/DataBase.cs b/LongoMatch.Services/Services/DataBase.cs
index 72c660d..d8e36d9 100644
--- a/LongoMatch.Services/Services/DataBase.cs
+++ b/LongoMatch.Services/Services/DataBase.cs
@@ -243,7 +243,7 @@ namespace LongoMatch.DB
public void AddProject(Project project) {
IObjectContainer db = Db4oFactory.OpenFile(DBFile);
- project.Description.LastModified = DateTime.Now;
+ project.Description.LastModified = DateTime.UtcNow;
Log.Debug("Adding new project: " + project);
try {
db.Store(project);
@@ -300,7 +300,7 @@ namespace LongoMatch.DB
SetDeleteCascadeOptions();
IObjectContainer db = Db4oFactory.OpenFile(DBFile);
- project.Description.LastModified = DateTime.Now;
+ project.Description.LastModified = DateTime.UtcNow;
Log.Debug("Updating project " + project);
try {
IQuery query = GetQueryProjectById(db, project.UUID);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]