From c0f7959e82f89c0cb803b98e4ee77eca2e7bfd2f Mon Sep 17 00:00:00 2001 From: Spirtix Date: Thu, 27 Jul 2023 17:13:07 +0200 Subject: [PATCH] postgres fix --- src/Controllers/Common/AuthenticationController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controllers/Common/AuthenticationController.cs b/src/Controllers/Common/AuthenticationController.cs index 71f8451..fbd03c8 100644 --- a/src/Controllers/Common/AuthenticationController.cs +++ b/src/Controllers/Common/AuthenticationController.cs @@ -46,7 +46,7 @@ public class AuthenticationController : Controller { Session session = new Session { User = user, ApiToken = Guid.NewGuid().ToString(), - CreatedAt = DateTime.Now + CreatedAt = DateTime.UtcNow }; ctx.Sessions.Add(session); @@ -150,7 +150,7 @@ public class AuthenticationController : Controller { Session session = new Session { Viking = viking, ApiToken = Guid.NewGuid().ToString(), - CreatedAt = DateTime.Now, + CreatedAt = DateTime.UtcNow }; ctx.Sessions.Add(session); ctx.SaveChanges();