mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-03 17:36:59 +01:00
Renaming method to better communicate function
This commit is contained in:
parent
d7fccae452
commit
4f23fc99a1
2 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@
|
|||
@foreach(var invoice in Model.Invoices)
|
||||
{
|
||||
<tr>
|
||||
<td>@invoice.Date.ToBrowserAgo()</td>
|
||||
<td>@invoice.Date.ToTimeAgo()</td>
|
||||
<td>
|
||||
@if(invoice.RedirectUrl != string.Empty)
|
||||
{
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace BTCPayServer.Views
|
|||
return new HtmlString($"<span class='localizeDate'>{hello}</span>");
|
||||
}
|
||||
|
||||
public static string ToBrowserAgo(this DateTimeOffset date)
|
||||
public static string ToTimeAgo(this DateTimeOffset date)
|
||||
{
|
||||
var formatted = (DateTimeOffset.UtcNow - date).TimeString() + " ago";
|
||||
return formatted;
|
||||
|
|
Loading…
Add table
Reference in a new issue