fix syntax of table.insert for dates