mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
#1725 - Changed to display in user's local date time format
This commit is contained in:
parent
da95bd6127
commit
0d2de4c421
@ -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>");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user