fix setting date in timeline

This commit is contained in:
Uwe Steinmann 2015-09-23 18:05:30 +02:00
parent dba8e78dc8
commit ca3970c9c3

View File

@ -2037,7 +2037,7 @@ mayscript>
$s = explode(' ', $item['date']);
$d = explode('-', $s[0]);
$t = explode(':', $s[1]);
echo "{'start': new Date(".$d[0].",".$d[1].",".$d[2].",".$t[0].",".$t[1].",".$t[2]."), 'content': '".$item['msg']."', 'className': '".$classname."'},\n";
echo "{'start': new Date(".$d[0].",".($d[1]-1).",".$d[2].",".$t[0].",".$t[1].",".$t[2]."), 'content': '".$item['msg']."', 'className': '".$classname."'},\n";
}
}
?>