fixes the compile and timestamps to db

This commit is contained in:
Paul Schneider 2026-07-11 03:26:13 +01:00
commit bed9c8a272
15 changed files with 36 additions and 36 deletions

View file

@ -108,7 +108,7 @@ namespace Yavsc.Controllers
UserName = user.UserName,
PostsCounter = pc,
Balance = user.AccountBalance,
ActiveCommandCount = _dbContext.RdvQueries.Count(x => (x.ClientId == user.Id) && (x.EventDate > DateTime.Now)),
ActiveCommandCount = _dbContext.RdvQueries.Count(x => (x.ClientId == user.Id) && (x.EventDate > DateTime.UtcNow)),
HasDedicatedCalendar = !string.IsNullOrEmpty(user.DedicatedGoogleCalendar),
Roles = await _userManager.GetRolesAsync(user),
PostalAddress = user.PostalAddress?.Address,

View file

@ -109,7 +109,7 @@ namespace Yavsc.Controllers
ViewBag.GoogleSettings = _googleSettings;
var userid = User.GetUserId();
var user = _userManager.FindByIdAsync(userid).Result;
return View("Create", new RdvQuery(activityCode, new Location(), DateTime.Now.AddHours(4))
return View("Create", new RdvQuery(activityCode, new Location(), DateTime.UtcNow.AddHours(4))
{
PerformerProfile = pro,
PerformerId = pro.PerformerId,

View file

@ -91,7 +91,7 @@ namespace Yavsc.Controllers
// FIXME Assert (command.ValidationDate == null)
if (command.ValidationDate == null) {
paymentOk = true;
command.ValidationDate = DateTime.Now;
command.ValidationDate = DateTime.UtcNow;
}
else _logger.LogError
("This Command were yet validated, and is now paied one more ...");