My idea was to add a control in function When
// ...
if (WWHTime != null) {
WWHTime = WWHTime * 1
var lastHereFormatting = new Date(WWHTime);
var intLastVisit = (lastHereFormatting.getYear() * 10000)+(lastHereFormatting.getMonth() * 100) + lastHereFormatting.getDate()
var lastHereInDateFormat = "" + lastHereFormatting;
var dayOfWeek = lastHereInDateFormat.substring(0,3)
var dateMonth = lastHereInDateFormat.substring(4,11)
var timeOfDay = lastHereInDateFormat.substring(11,16)
var year = lastHereFormatting.getYear()
// I've changed above row
var WWHText = dayOfWeek + ", " + dateMonth + " at " + timeOfDay + " year =" + year
// print also year
}
else WWHText = "" // this is 0 visit so cookie is null
...