Fix date error in chrome