fixes the compile and timestamps to db
This commit is contained in:
parent
abfc68a809
commit
bed9c8a272
15 changed files with 36 additions and 36 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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 ...");
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ namespace Yavsc.Services
|
|||
if (Channels.TryRemove(roomName, out deadchanInfo))
|
||||
{
|
||||
var room = _dbContext.ChatRoom.FirstOrDefault(r => r.Name == roomName);
|
||||
room.LatestJoinPart = DateTime.Now;
|
||||
room.LatestJoinPart = DateTime.UtcNow;
|
||||
_dbContext.SaveChanges();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ public class DiskUsageTracker : IDiskUsageTracker
|
|||
{
|
||||
public DUTInfo()
|
||||
{
|
||||
Creation = DateTime.Now;
|
||||
Creation = DateTime.UtcNow;
|
||||
}
|
||||
public long Usage { get; set; }
|
||||
public long Quota { get; set; }
|
||||
|
|
@ -46,7 +46,7 @@ public class DiskUsageTracker : IDiskUsageTracker
|
|||
if (DiskUsage.Count > ulistLength)
|
||||
{
|
||||
// remove the oldest
|
||||
var oldestts = DateTime.Now;
|
||||
var oldestts = DateTime.UtcNow;
|
||||
DUTInfo oinfo = null;
|
||||
string ouname = null;
|
||||
foreach (var diskusage in DiskUsage)
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ namespace Yavsc.ViewComponents
|
|||
string htmlFieldName,
|
||||
string calId )
|
||||
{
|
||||
var minDate = DateTime.Now;
|
||||
var minDate = DateTime.UtcNow;
|
||||
var maxDate = minDate.AddDays(20);
|
||||
|
||||
var model = await _manager.CreateViewModelAsync(
|
||||
|
|
@ -30,6 +30,6 @@ namespace Yavsc.ViewComponents
|
|||
|
||||
return View(model);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue