fix date bug in orders_table