Localization Issues (#3653)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
This commit is contained in:
parent
98a2b9d3ed
commit
0f72f63b35
15 changed files with 25 additions and 21 deletions
|
@ -695,7 +695,7 @@ public class BookService : IBookService
|
|||
var month = 0;
|
||||
var day = 0;
|
||||
if (string.IsNullOrEmpty(publicationDate)) return (year, month, day);
|
||||
switch (DateTime.TryParse(publicationDate, out var date))
|
||||
switch (DateTime.TryParse(publicationDate, CultureInfo.InvariantCulture, out var date))
|
||||
{
|
||||
case true:
|
||||
year = date.Year;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue