Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Commit

Permalink
Merge branch 'v2.2' into v2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Dec 28, 2009
2 parents 9d9cd26 + 8ff963e commit 6b7322f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DotNetOpenId.BuildTasks/GetBuildVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private Version ReadVersionFromFile() {
}

private int CalculateJDate(DateTime date) {
int yearLastDigit = date.Year % 10;
int yearLastDigit = date.Year - 2000; // can actually be two digits in or after 2010
DateTime firstOfYear = new DateTime(date.Year, 1, 1);
int dayOfYear = (date - firstOfYear).Days + 1;
int jdate = yearLastDigit * 1000 + dayOfYear;
Expand Down

0 comments on commit 6b7322f

Please sign in to comment.