format timestamps properly in table