Fixed date format not working with MinGW on Windows.