fix datetime RunTimeWarning