public bool IsInPublicBiddingWindow(LeagueYear leagueYear) { if (!leagueYear.Options.PickupSystem.HasPublicBiddingWindow) { return(false); } if (!leagueYear.PlayStatus.DraftFinished) { return(false); } var currentTime = _clock.GetCurrentInstant(); var previousBidTime = _clock.GetPreviousBidTime(); LocalDate previousBidDate = previousBidTime.InZone(TimeExtensions.EasternTimeZone).LocalDateTime.Date; var publicBidDate = previousBidDate.Next(TimeExtensions.PublicBiddingRevealDay); var publicBidDateTime = (publicBidDate + TimeExtensions.PublicBiddingRevealTime) .InZoneStrictly(TimeExtensions.EasternTimeZone) .ToInstant(); return(currentTime > publicBidDateTime); }