make sure timestamps are in millisec