#1725 - Changed to display in user's local date time format

This commit is contained in:
Alex Gidge 2021-03-07 23:19:39 +00:00
parent da95bd6127
commit 0d2de4c421

View File

@ -28,13 +28,13 @@ namespace BTCPayServer.Views
public static HtmlString ToBrowserDate(this DateTimeOffset date)
{
var displayDate = date.ToString("g", CultureInfo.InvariantCulture);
var displayDate = date.ToString("g");
return new HtmlString($"<span class='localizeDate'>{displayDate}</span>");
}
public static HtmlString ToBrowserDate(this DateTime date)
{
var displayDate = date.ToString("g", CultureInfo.InvariantCulture);
var displayDate = date.ToString("g");
return new HtmlString($"<span class='localizeDate'>{displayDate}</span>");
}