Logs now show date time rather than x hours ago (#169)
This commit is contained in:
@@ -456,6 +456,8 @@ namespace gaseous_server.Classes.Metadata
|
||||
}
|
||||
|
||||
private static void CacheClean()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (ObjectCache == null)
|
||||
{
|
||||
@@ -470,6 +472,11 @@ namespace gaseous_server.Classes.Metadata
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
ObjectCache = new Dictionary<string, MemoryCacheObject>();
|
||||
}
|
||||
}
|
||||
|
||||
private class MemoryCacheObject
|
||||
{
|
||||
|
@@ -54,7 +54,7 @@
|
||||
|
||||
var newRow = [
|
||||
//result[i].id,
|
||||
moment(result[i].eventTime).fromNow(),
|
||||
moment(result[i].eventTime).format("YYYY-MM-DD H:mm:ss"),
|
||||
result[i].eventType,
|
||||
result[i].process,
|
||||
result[i].message
|
||||
|
Reference in New Issue
Block a user