You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/models
Jason Song 21a73ae642
Use UTC as default timezone when schedule Actions cron tasks (#31742)
Fix #31657.

According to the
[doc](https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#onschedule)
of GitHub Actions, The timezone for cron should be UTC, not the local
timezone. And Gitea Actions doesn't have any reasons to change this, so
I think it's a bug.

However, Gitea Actions has extended the syntax, as it supports
descriptors like `@weekly` and `@every 5m`, and supports specifying the
timezone like `TZ=UTC 0 10 * * *`. So we can make it use UTC only when
the timezone is not specified, to be compatible with GitHub Actions, and
also respect the user's specified.

It does break the feature because the times to run tasks would be
changed, and it may confuse users. So I don't think we should backport
this.

## ⚠️ BREAKING ⚠️

If the server's local time zone is not UTC, a scheduled task would run
at a different time after upgrading Gitea to this version.
7 months ago
..
actions Use UTC as default timezone when schedule Actions cron tasks (#31742) 7 months ago
activities Refactor webhook (#31587) 8 months ago
admin Next round of `db.DefaultContext` refactor (#27089) 2 years ago
asymkey Enable more `revive` linter rules (#30608) 11 months ago
auth add skip secondary authorization option for public oauth2 clients (#31454) 8 months ago
avatars Replace 10 more gt- classes with tw- (#29945) 12 months ago
db [Refactor] Unify repo search order by logic (#30876) 9 months ago
dbfs Enable `unparam` linter (#31277) 9 months ago
fixtures Fix wrong display of recently pushed notification (#25812) 10 months ago
git Exclude protected branches from recently pushed (#31748) 7 months ago
issues Add permission check when creating PR (#31033) 8 months ago
migrations add skip secondary authorization option for public oauth2 clients (#31454) 8 months ago
organization Fix wrong display of recently pushed notification (#25812) 10 months ago
packages Fix package list performance (#30520) 11 months ago
perm Clarify permission "HasAccess" behavior (#30585) 11 months ago
project Fix the display of project type for deleted projects (#31732) 8 months ago
pull Add support for sha256 repositories (#23894) 1 year ago
repo Make GetRepositoryByName more safer (#31712) 8 months ago
secret Clarify Actions resources ownership (#31724) 7 months ago
shared/types Refactor locale&string&template related code (#29165) 1 year ago
system Refactor deletion (#28610) 1 year ago
unit Refactor repo unit "disabled" check (#31389) 9 months ago
unittest Add some tests to clarify the "must-change-password" behavior (#30693) 11 months ago
user Support delete user email in admin panel (#31690) 8 months ago
webhook Store webhook event in database (#29145) 1 year ago
error.go Add merge style `fast-forward-only` (#28954) 1 year ago
fixture_generation.go Replace more db.DefaultContext (#27628) 1 year ago
fixture_test.go Replace more db.DefaultContext (#27628) 1 year ago
main_test.go make writing main test easier (#27270) 1 year ago
org.go Add user blocking (#29028) 1 year ago
org_team.go Clarify permission "HasAccess" behavior (#30585) 11 months ago
org_team_test.go Add user blocking (#29028) 1 year ago
org_test.go Add user blocking (#29028) 1 year ago
repo.go Refactor deletion (#28610) 1 year ago
repo_test.go Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
repo_transfer.go chore: use errors.New to replace fmt.Errorf with no parameters will much better (#30621) 11 months ago