#298 added some tests for the landing page

This commit is contained in:
tidusjar 2016-06-13 10:28:36 +01:00
commit 3df6b65666
4 changed files with 60 additions and 5 deletions

View file

@ -41,6 +41,6 @@ namespace PlexRequests.Core.SettingModels
public DateTime NoticeEnd { get; set; }
[JsonIgnore]
public bool NoticeActive => DateTime.Now > NoticeEnd || DateTime.Now < NoticeStart;
public bool NoticeActive => DateTime.Now < NoticeEnd && DateTime.Now > NoticeStart;
}
}