diff --git a/Usenet/Nntp/NntpClient.rfc3977.cs b/Usenet/Nntp/NntpClient.rfc3977.cs
index fc1c383..c25daaa 100644
--- a/Usenet/Nntp/NntpClient.rfc3977.cs
+++ b/Usenet/Nntp/NntpClient.rfc3977.cs
@@ -330,7 +330,7 @@ public NntpGroupsResponse NewGroups(NntpDateTime sinceDateTime) =>
/// posted or received since this date and time.
/// A multi-line response containing a list of message-ids.
public NntpMultiLineResponse NewNews(string wildmat, NntpDateTime sinceDateTime) =>
- connection.MultiLineCommand($"NEWNEWS {sinceDateTime}", new MultiLineResponseParser(230));
+ connection.MultiLineCommand($"NEWNEWS {wildmat} {sinceDateTime}", new MultiLineResponseParser(230));
///
diff --git a/Usenet/Usenet.csproj b/Usenet/Usenet.csproj
index 9cb311d..38fa1cd 100644
--- a/Usenet/Usenet.csproj
+++ b/Usenet/Usenet.csproj
@@ -14,7 +14,7 @@
-
+
all
runtime; build; native; contentfiles; analyzers
@@ -22,9 +22,9 @@
all
runtime; build; native; contentfiles; analyzers
-
-
-
+
+
+
diff --git a/UsenetTests/Nntp/Parsers/HeaderDateParserTests.cs b/UsenetTests/Nntp/Parsers/HeaderDateParserTests.cs
index 9a27c9e..a4c70b6 100644
--- a/UsenetTests/Nntp/Parsers/HeaderDateParserTests.cs
+++ b/UsenetTests/Nntp/Parsers/HeaderDateParserTests.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using System.Globalization;
using Usenet.Nntp.Parsers;
using Xunit;
@@ -53,7 +54,7 @@ public void ObsoleteTwoDigitYearBeforeCurrentDateShouldBeParsedCorrectly()
{
DateTimeOffset yesterday = new DateTimeOffset(DateTime.UtcNow.Date.AddDays(-1), TimeSpan.Zero);
DateTimeOffset expectedDate = yesterday;
- string headerValue = $"{yesterday:dd MMM yy HH:mm:ss} +0000";
+ string headerValue = yesterday.ToString("dd MMM yy HH:mm:ss", CultureInfo.InvariantCulture) + " +0000";
DateTimeOffset actualDate = HeaderDateParser.Parse(headerValue).GetValueOrDefault();
Assert.Equal(expectedDate, actualDate);
}
@@ -63,7 +64,7 @@ public void ObsoleteTwoDigitYearAfterCurrentDateShouldBeParsedCorrectly()
{
DateTimeOffset tomorrow = new DateTimeOffset(DateTime.UtcNow.Date.AddDays(+1), TimeSpan.Zero);
DateTimeOffset expectedDate = tomorrow.AddYears(-100);
- string headerValue = $"{tomorrow:dd MMM yy HH:mm:ss} +0000";
+ string headerValue = tomorrow.ToString("dd MMM yy HH:mm:ss", CultureInfo.InvariantCulture) + " +0000";
DateTimeOffset actualDate = HeaderDateParser.Parse(headerValue).GetValueOrDefault();
Assert.Equal(expectedDate, actualDate);
}
@@ -73,7 +74,7 @@ public void ObsoleteTwoDigitYearOnCurrentDateShouldBeParsedCorrectly()
{
var today = new DateTimeOffset(DateTime.UtcNow.Date, TimeSpan.Zero);
DateTimeOffset expectedDate = today;
- string headerValue = $"{expectedDate:dd MMM yy HH:mm:ss} +0000";
+ string headerValue = expectedDate.ToString("dd MMM yy HH:mm:ss", CultureInfo.InvariantCulture) + " +0000";
DateTimeOffset actualDate = HeaderDateParser.Parse(headerValue).GetValueOrDefault();
Assert.Equal(expectedDate, actualDate);
}
diff --git a/UsenetTests/UsenetTests.csproj b/UsenetTests/UsenetTests.csproj
index d0e9e59..6394916 100644
--- a/UsenetTests/UsenetTests.csproj
+++ b/UsenetTests/UsenetTests.csproj
@@ -9,9 +9,9 @@
-
-
-
+
+
+
all