Fix for #3719

%-d is not a valid strftime format on windows.