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
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue