handle datetime on Darwin and Linux