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();