Skip to content
This repository was archived by the owner on Sep 20, 2022. It is now read-only.

Commit 09e5b99

Browse files
author
Jake Ginnivan
committed
Using fixed date format and en-US culture for the date
1 parent 12999ce commit 09e5b99

5 files changed

Lines changed: 12 additions & 11 deletions

src/GitReleaseNotes.Tests/ReleaseNotesGeneratorTests.AllTags.approved.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
- [3] - Issue4
44

5-
Commits: 66E022FEDC...66E022FEDC
5+
Commits: E2A20B8F6C...E2A20B8F6C
66

77

88
# 0.2.0 (05 January 2012)
99

1010
- [2] - Issue3
1111

12-
Commits: 1DAD827848...EA6F7EA20E
12+
Commits: AC39885536...CA74E870F2
1313

1414

1515
# 0.1.0 (03 January 2012)
1616

1717
- [0] - Issue1
1818
- [1] - Issue2
1919

20-
Commits: B44B325984...D23E3668A8
20+
Commits: E413A880DB...F6924D7A0B

src/GitReleaseNotes.Tests/ReleaseNotesGeneratorTests.AllTagsWithNoCommitsOrIssuesAfterLastRelease.approved.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
- [2] - Issue3
44

5-
Commits: 1DAD827848...EA6F7EA20E
5+
Commits: AC39885536...CA74E870F2
66

77

88
# 0.1.0 (03 January 2012)
99

1010
- [0] - Issue1
1111
- [1] - Issue2
1212

13-
Commits: B44B325984...D23E3668A8
13+
Commits: E413A880DB...F6924D7A0B

src/GitReleaseNotes.Tests/ReleaseNotesGeneratorTests.AppendOnlyNewItems.approved.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
- [3] - Issue4
44

5-
Commits: 66E022FEDC...66E022FEDC
5+
Commits: E2A20B8F6C...E2A20B8F6C
66

77

88
# 0.2.0 (05 January 2012)
99

1010
- [2] - Edited Issue3
1111

12-
Commits: 1DAD827848...EA6F7EA20E
12+
Commits: AC39885536...CA74E870F2
1313

1414

1515
# 0.1.0 (03 January 2012)
1616

1717
- [0] - Edited Issue1
1818
- [1] - Edited Issue2
1919

20-
Commits: B44B325984...D23E3668A8
20+
Commits: E413A880DB...F6924D7A0B

src/GitReleaseNotes.Tests/ReleaseNotesGeneratorTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ public void AppendOnlyNewItems()
7474
7575
- [2] - Edited Issue3
7676
77-
Commits: 1DAD827848...EA6F7EA20E
77+
Commits: AC39885536...CA74E870F2
7878
7979
8080
# 0.1.0 (03 January 2012)
8181
8282
- [0] - Edited Issue1
8383
- [1] - Edited Issue2
8484
85-
Commits: B44B325984...D23E3668A8");
85+
Commits: E413A880DB...F6924D7A0B");
8686

8787
var releaseNotes = ReleaseNotesGenerator.GenerateReleaseNotes(
8888
repo, issueTracker, previousReleaseNotes, new string[0],

src/GitReleaseNotes.Tests/TestDataCreator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ private string GetNextId()
9797
private Commit CreateCommit(DateTimeOffset when)
9898
{
9999
var commit = Substitute.For<Commit>();
100-
var shaBasedOnDate = SHA1.Create().ComputeHash(Encoding.ASCII.GetBytes(when.DateTime.ToLongDateString()));
100+
var formattedDate = when.DateTime.ToString("F", CultureInfo.GetCultureInfo("en-US"));
101+
var shaBasedOnDate = SHA1.Create().ComputeHash(Encoding.ASCII.GetBytes(formattedDate));
101102
commit.Author.Returns(new Signature("Some Dude", "[email protected]", when));
102103
commit.Id.Returns(new ObjectId(shaBasedOnDate));
103104
commit.Sha.Returns(BitConverter.ToString(shaBasedOnDate).Replace("-", string.Empty));

0 commit comments

Comments
 (0)