mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-12 00:15:50 +01:00
(refs #1798) Fix specification method of offset
This commit is contained in:
@@ -179,7 +179,7 @@ trait RepositorySettingsControllerBase extends ControllerBase {
|
|||||||
} else {
|
} else {
|
||||||
val protection = ApiBranchProtection(getProtectedBranchInfo(repository.owner, repository.name, branch))
|
val protection = ApiBranchProtection(getProtectedBranchInfo(repository.owner, repository.name, branch))
|
||||||
val lastWeeks = getRecentStatuesContexts(repository.owner, repository.name,
|
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)
|
val knownContexts = (lastWeeks ++ protection.status.contexts).toSeq.sortBy(identity)
|
||||||
html.branchprotection(repository, branch, protection, knownContexts, flash.get("info"))
|
html.branchprotection(repository, branch, protection, knownContexts, flash.get("info"))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user