Fix date parsing issue occurring on some platforms