(refs #1798) Fix specification method of offset

This commit is contained in:
Naoki Takezoe
2017-12-07 14:37:48 +09:00
parent 8539486c6e
commit adba849ec5

View File

@@ -179,7 +179,7 @@ trait RepositorySettingsControllerBase extends ControllerBase {
} else {
val protection = ApiBranchProtection(getProtectedBranchInfo(repository.owner, repository.name, branch))
val lastWeeks = getRecentStatuesContexts(repository.owner, repository.name,
Date.from(LocalDateTime.now.minusWeeks(1).toInstant(ZoneOffset.of("UTC")))).toSet
Date.from(LocalDateTime.now.minusWeeks(1).toInstant(ZoneOffset.UTC))).toSet
val knownContexts = (lastWeeks ++ protection.status.contexts).toSeq.sortBy(identity)
html.branchprotection(repository, branch, protection, knownContexts, flash.get("info"))
}