Fix date output