fixed date handling in node server