Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/commit/fe5b42696d27ff2930129159f3acdaffdf8918c8?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
5 changed files with
36 additions and
1 deletions
@ -42,7 +42,8 @@ namespace NzbDrone.Api.System
IsLinux = OsInfo . IsLinux ,
IsWindows = OsInfo . IsWindows ,
Branch = _configFileProvider . Branch ,
Authentication = _configFileProvider . AuthenticationEnabled
Authentication = _configFileProvider . AuthenticationEnabled ,
StartOfWeek = ( int ) OsInfo . FirstDayOfWeek
} . AsResponse ( ) ;
}
@ -0,0 +1,24 @@
using System ;
using System.Globalization ;
namespace NzbDrone.Common
{
public static class DateTimeExtensions
{
public static DateTime GetFirstDayOfWeek ( this DateTime dayInWeek )
{
var defaultCultureInfo = CultureInfo . CurrentCulture ;
return GetFirstDayOfWeek ( dayInWeek , defaultCultureInfo ) ;
}
public static DateTime GetFirstDayOfWeek ( this DateTime dayInWeek , CultureInfo cultureInfo )
{
DayOfWeek firstDay = cultureInfo . DateTimeFormat . FirstDayOfWeek ;
DateTime firstDayInWeek = dayInWeek . Date ;
while ( firstDayInWeek . DayOfWeek ! = firstDay )
firstDayInWeek = firstDayInWeek . AddDays ( - 1 ) ;
return firstDayInWeek ;
}
}
}
@ -28,5 +28,13 @@ namespace NzbDrone.Common.EnvironmentInfo
return ! IsLinux ;
}
}
public static DayOfWeek FirstDayOfWeek
{
get
{
return DateTime . Today . GetFirstDayOfWeek ( ) . DayOfWeek ;
}
}
}
}
@ -66,6 +66,7 @@
<Compile Include= "Composition\Container.cs" />
<Compile Include= "Composition\IContainer.cs" />
<Compile Include= "Composition\ContainerBuilderBase.cs" />
<Compile Include= "DateTimeExtensions.cs" />
<Compile Include= "EnsureThat\Ensure.cs" />
<Compile Include= "EnsureThat\EnsureBoolExtensions.cs" />
<Compile Include= "EnsureThat\EnsureCollectionExtensions.cs" />
@ -21,6 +21,7 @@ define(
allDayDefault : false ,
ignoreTimezone : false ,
weekMode : 'variable' ,
firstDay : window . NzbDrone . ServerStatus . startOfWeek ,
timeFormat : 'h(:mm)tt' ,
header : {
left : 'prev,next today' ,