Compare commits

...

3 Commits

Author SHA1 Message Date
e9264e2c2f Changelog 2021-04-01 11:59:44 +09:00
ec072d5225 Properly show browser date 2021-04-01 11:56:44 +09:00
378b0cab23 Ensure root app mapping works (#2415)
close #2414
2021-04-01 11:56:35 +09:00
4 changed files with 19 additions and 3 deletions

View File

@ -41,6 +41,13 @@ namespace BTCPayServer.Filters
context.RouteContext.RouteData.Values.Add("appId", matchedDomainMapping.AppId);
return true;
}
if (AppType == css.RootAppType) {
context.RouteContext.RouteData.Values.Add("appId", css.RootAppId);
return true;
}
return AppType is null;
}
else

View File

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

View File

@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>1.0.7.1</Version>
<Version>1.0.7.2</Version>
</PropertyGroup>
</Project>

View File

@ -1,5 +1,14 @@
# Changelog
## 1.0.7.2
Small release fixing bugs introduced in 1.0.7.1:
### Bug fixes:
* The date in invoice page were not showing anymore the browser date time, but the server date time. (@NicolasDorier)
* Apps on root where not working anymore, redirecting to login page rather than showing the app (see #2414) (@bolatovumar)
## 1.0.7.1
### Improvements: