fix date output for darwin