just started testing with new .net core v6 fixed some minor issues with UTC dates in light of new npgsql thing

This commit is contained in:
2021-10-15 23:31:28 +00:00
parent 1e27ec2366
commit 95d2ac89b7
6 changed files with 73 additions and 69 deletions

View File

@@ -316,7 +316,7 @@ namespace AyaNova.Api.Controllers
DownloadToken = DownloadToken.Replace("=", "");
DownloadToken = DownloadToken.Replace("+", "");
u.DlKey = DownloadToken;
u.DlKeyExpire = exp.DateTime;
u.DlKeyExpire = exp.UtcDateTime;
//=======================================================
@@ -336,8 +336,8 @@ namespace AyaNova.Api.Controllers
//save auth token to ensure single sign on only
u.CurrentAuthToken = token;
u.LastLogin = DateTime.UtcNow;
u.LastLogin = DateTime.UtcNow;
await ct.SaveChangesAsync();
//KEEP this, masked version of IP address