use invariant culture for month names
This commit is contained in:
parent
f45c41cec7
commit
d789c75116
@ -2,11 +2,13 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using System.Globalization;
|
||||||
using EDJournal;
|
using EDJournal;
|
||||||
|
|
||||||
namespace EliteBGS.BGS {
|
namespace EliteBGS.BGS {
|
||||||
public class NonaDiscordLog : IDiscordLogGenerator {
|
public class NonaDiscordLog : IDiscordLogGenerator {
|
||||||
private string FormatDate() {
|
private string FormatDate() {
|
||||||
|
CultureInfo cultureInfo = CultureInfo.InvariantCulture;
|
||||||
StringBuilder date = new StringBuilder();
|
StringBuilder date = new StringBuilder();
|
||||||
DateTime today = DateTime.Now;
|
DateTime today = DateTime.Now;
|
||||||
string suffix;
|
string suffix;
|
||||||
@ -20,7 +22,8 @@ namespace EliteBGS.BGS {
|
|||||||
}
|
}
|
||||||
|
|
||||||
date.AppendFormat("{0} {1}{2}, {3}",
|
date.AppendFormat("{0} {1}{2}, {3}",
|
||||||
today.ToString("MMMM"), today.Day, suffix,
|
cultureInfo.DateTimeFormat.GetMonthName(today.Month),
|
||||||
|
today.Day, suffix,
|
||||||
today.Year + EliteDangerous.YearOffset
|
today.Year + EliteDangerous.YearOffset
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user