Skip to content

Commit 3f90333

Browse files
committed
Fix date format in GithubActionsHelloWorldTest.cs
1 parent 0b3aca6 commit 3f90333

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GithubActionsHelloWorldTests/GithubActionsHelloWorldTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ public async Task Main_ShouldRunWithoutError()
1818
[Fact]
1919
public void ShouldDoTheSameThingOnEachGHARunner()
2020
{
21-
Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
21+
Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
2222

23-
string expected = "9/2/2010 12:00:00 AM";
23+
string expected = "09/02/2010 00:00:00";
2424
DateTime parsedDate = DateTime.Parse(expected);
2525
var actual = parsedDate.ToString();
2626

0 commit comments

Comments
 (0)