DateTime.Now.ToUniversalTime -> DateTime.UtcNow

This commit is contained in:
nicolas.dorier
2020-12-12 15:25:08 +09:00
parent a294ad41cb
commit 1386f205fd

View File

@@ -68,9 +68,9 @@ namespace BTCPayServer.Models.AppViewModels
public decimal TotalCurrency { get; }
}
public bool Started => !StartDate.HasValue || DateTime.Now.ToUniversalTime() > StartDate;
public bool Started => !StartDate.HasValue || DateTime.UtcNow > StartDate;
public bool Ended => EndDate.HasValue && DateTime.Now.ToUniversalTime() > EndDate;
public bool Ended => EndDate.HasValue && DateTime.UtcNow > EndDate;
public bool DisplayPerksRanking { get; set; }
public bool Enabled { get; set; }
public string ResetEvery { get; set; }