Skip to content

Commit

Permalink
Correct incorrect assumption about date from nvidia site.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmemstr committed Feb 16, 2022
1 parent 97afe5f commit caa7024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Nvidia/NvidiaWeb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static (bool, string) IsNewDriver() {

var element = doc.DocumentNode.SelectSingleNode("//*[@id=\"tdReleaseDate\"]").InnerText.Trim();
// Parse date from "2021.11.16"
DateTime.TryParseExact(element, "yyyy.MM.dd", System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None, out DateTime releaseDate); // If release date is newer than driver date, print it.
DateTime.TryParseExact(element, "yyyy.M.dd", System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None, out DateTime releaseDate); // If release date is newer than driver date, print it.
if (releaseDate > gpu.Item2) {
return (true, downloadPage);
}
Expand Down

0 comments on commit caa7024

Please sign in to comment.