Fix wrong date format output