code: func (e *Engine) prevReleaseDay() time.Time {
  	prevRelease := e.midnight(e.timeManager.Now())
  	day := prevRelease.Weekday()
  	var dayHours int
  	if day < releaseDay || (day == releaseDay && prevRelease.Hour() < releaseHourCheck) {
  		dayHours = 24 * (7 - int(releaseDay-day))
  	} else if day > releaseDay || (day == releaseDay && prevRelease.Hour() > releaseHourCheck) {
  		dayHours = 24 * int(day-releaseDay)
  	}
  	hours := releaseHourCheck - dayHours - prevRelease.Hour()
  	prevRelease = prevRelease.Add(time.Duration(hours) * time.Hour)
  	return prevRelease
  }
docs: // prevReleaseDay returns the date of the last release day, calculated based on
  // the `releaseHourCheck`-th hour of the previous `releaseDay` weekday.