Van 'Session' ook datum leesbaar meeloggen
svn path=/Website/branches/v2016.3/; revision=32453
This commit is contained in:
@@ -364,6 +364,14 @@ function __DumpCollection(pCollection, title, optionalColor)
|
||||
else if (typeof pCollection(i) != "object" || pCollection(i) === null)
|
||||
{
|
||||
sLog += "</td><td>" + Server.HTMLEncode(pCollection(i));
|
||||
var v = pCollection.item(i);
|
||||
var numv = parseInt(v);
|
||||
if (!isNaN(numv))// Als de keynaam een datum lijkt dan datum parsen. Leest gemakkelijker
|
||||
{
|
||||
if (String(pCollection.key(i)).match(/(^date|van$|tot$|datum)/)
|
||||
|| (numv > 946684800000 && numv < 2145916800000)) // 2000-2038
|
||||
sLog += " <em style='font-size:smaller'>" + toISODateTimeString(new Date(parseInt(v)), true) + "</em>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -382,7 +390,7 @@ function __DumpCollection(pCollection, title, optionalColor)
|
||||
var numv = parseInt(v);
|
||||
if (!isNaN(numv))// Als de keynaam een datum lijkt dan datum parsen. Leest gemakkelijker
|
||||
{
|
||||
if (String(pCollection.key(i)).match(/(^date|van$|tot$|datum)/)
|
||||
if (String(pCollection.key(i)).match(/(^date|date$|van$|tot$|datum)/)
|
||||
|| (numv > 946684800000 && numv < 2145916800000)) // 2000-2038
|
||||
sLog += " <em style='font-size:smaller'>" + toISODateTimeString(new Date(parseInt(v)), true) + "</em>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user