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

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

View file

@ -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)