fixed a date format problem that prevent to format milliseconds in a correct way