Skip to content

Commit 49e260c

Browse files
committed
Merge master into indexbyfileext and resolve conflicts
2 parents d63a0fb + 1338825 commit 49e260c

File tree

1,030 files changed

+138945
-70306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,030 files changed

+138945
-70306
lines changed

.drone.yml

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ steps:
9595
- make build
9696
environment:
9797
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
98+
GOSUMDB: sum.golang.org
9899
TAGS: bindata sqlite sqlite_unlock_notify
99100

100101
- name: unit-test

.golangci.yml

+2-8
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,6 @@ issues:
8686
- path: models/issue_comment_list.go
8787
linters:
8888
- dupl
89-
# "Destroy" is misspelled in github.com/go-macaron/session/session.go:213 so it's not our responsability to fix it
90-
- path: modules/session/virtual.go
91-
linters:
92-
- misspell
93-
text: '`Destory` is a misspelling of `Destroy`'
94-
- path: modules/session/memory.go
95-
linters:
89+
- linters:
9690
- misspell
97-
text: '`Destory` is a misspelling of `Destroy`'
91+
text: '`Unknwon` is a misspelling of `Unknown`'

CHANGELOG.md

+41
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,47 @@ This changelog goes through all the changes that have been made in each release
44
without substantial changes to our git log; to see the highlights of what has
55
been added to each release, please refer to the [blog](https://blog.gitea.io).
66

7+
## [1.9.2](https://github.com/go-gitea/gitea/releases/tag/v1.9.2) - 2019-08-22
8+
* BUGFIXES
9+
* Fix wrong sender when send slack webhook (#7918) (#7924)
10+
* Upload support text/plain; charset=utf8 (#7899)
11+
* Lfs/lock: round locked_at timestamp to second (#7872) (#7875)
12+
* Fix non existent milestone with 500 error (#7867) (#7873)
13+
* SECURITY
14+
* Fix No PGP signature on 1.9.1 tag (#7874)
15+
* Release built with go 1.12.9 to fix security fixes in golang std lib, ref: https://groups.google.com/forum/#!msg/golang-announce/oeMaeUnkvVE/a49yvTLqAAAJ
16+
* ENHANCEMENT
17+
* Fix pull creation with empty changes (#7920) (#7926)
18+
* BUILD
19+
* Drone/docker: prepare multi-arch release + provide arm64 image (#7571) (#7884)
20+
21+
## [1.9.1](https://github.com/go-gitea/gitea/releases/tag/v1.9.1) - 2019-08-14
22+
* BREAKING
23+
* Add pagination for admin api get orgs and fix only list public orgs bug (#7742) (#7752)
24+
* SECURITY
25+
* Be more strict with git arguments (#7715) (#7762)
26+
* Release built with go 1.12.8 to fix security fixes in golang std lib, ref: https://groups.google.com/forum/#!topic/golang-nuts/fCQWxqxP8aA
27+
* BUGFIXES
28+
* Fix local runs of ssh-requiring integration tests (#7855) (#7857)
29+
* Fix hook problem (#7856) (#7754)
30+
* Use .ExpiredUnix.IsZero to display green color of forever valid gpg key (#7850) (#7846)
31+
* Do not fetch all refs (#7797) (#7837)
32+
* Fix duplicate call of webhook (#7824) (#7821)
33+
* Enable switching to a different source branch when PR already exists (#7823)
34+
* Rewrite existing repo units if setting is not included in api body (#7811)
35+
* Prevent Commit Status and Message From Overflowing On Branch Page (#7800) (#7808)
36+
* API: fix multiple bugs with statuses endpoints (Backport #7785) (#7807)
37+
* Fix Slack webhook fork message (1.9 release backport) (#7783)
38+
* Fix approvals counting (#7757) (#7777)
39+
* Fix rename failed when rewrite public keys (#7761) (#7769)
40+
* Fix dropTableColumns sqlite implementation (#7710) (#7765)
41+
* Fix repo_index_status lingering when deleting a repository (#7738)
42+
* Fix milestone completness calculation when migrating (#7725) (#7732)
43+
* Fixes indexed repos keeping outdated indexes when files grow too large (#7731)
44+
* Skip non-regular files (e.g. submodules) on repo indexing (#7717)
45+
* Improve branches list performance and fix protected branch icon when no-login (#7695) (#7704)
46+
* Correct wrong datetime format for git (#7689) (#7690)
47+
748
## [1.9.0](https://github.com/go-gitea/gitea/releases/tag/v1.9.0) - 2019-07-30
849
* BREAKING
950
* Better logging (#6038) (#6095)

MAINTAINERS

+2
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ Richard Mahn <[email protected]> (@richmahn)
3131
Mrsdizzie <[email protected]> (@mrsdizzie)
3232
silverwind <[email protected]> (@silverwind)
3333
Gary Kim <[email protected]> (@gary-kim)
34+
Guillermo Prandi <[email protected]> (@guillep2k)
35+
Mura Li <[email protected]> (@typeless)

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ generate:
102102
.PHONY: generate-swagger
103103
generate-swagger:
104104
@hash swagger > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
105-
GO111MODULE="on" $(GO) get -u github.com/go-swagger/go-swagger/cmd/swagger@v0.19.0; \
105+
GO111MODULE="on" $(GO) get -u github.com/go-swagger/go-swagger/cmd/swagger@v0.20.1; \
106106
fi
107107
swagger generate spec -o './$(SWAGGER_SPEC)'
108108
$(SED_INPLACE) '$(SWAGGER_SPEC_S_TMPL)' './$(SWAGGER_SPEC)'
@@ -120,7 +120,7 @@ swagger-check: generate-swagger
120120
.PHONY: swagger-validate
121121
swagger-validate:
122122
@hash swagger > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
123-
$(GO) get -u github.com/go-swagger/go-swagger/cmd/swagger; \
123+
GO111MODULE="on" $(GO) get -u github.com/go-swagger/go-swagger/cmd/swagger@v0.20.1; \
124124
fi
125125
$(SED_INPLACE) '$(SWAGGER_SPEC_S_JSON)' './$(SWAGGER_SPEC)'
126126
swagger validate './$(SWAGGER_SPEC)'
@@ -473,6 +473,6 @@ pr:
473473
golangci-lint:
474474
@hash golangci-lint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
475475
export BINARY="golangci-lint"; \
476-
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.16.0; \
476+
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.17.1; \
477477
fi
478-
golangci-lint run
478+
golangci-lint run --deadline=3m

cmd/cmd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func initDB() error {
3838

3939
func initDBDisableConsole(disableConsole bool) error {
4040
setting.NewContext()
41-
models.LoadConfigs()
41+
setting.InitDBConfig()
4242

4343
setting.NewXORMLogService(disableConsole)
4444
if err := models.SetEngine(); err != nil {

cmd/convert.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ func runConvert(ctx *cli.Context) error {
3131
log.Trace("AppWorkPath: %s", setting.AppWorkPath)
3232
log.Trace("Custom path: %s", setting.CustomPath)
3333
log.Trace("Log path: %s", setting.LogRootPath)
34-
models.LoadConfigs()
34+
setting.InitDBConfig()
3535

36-
if models.DbCfg.Type != "mysql" {
36+
if !setting.Database.UseMySQL {
3737
fmt.Println("This command can only be used with a MySQL database")
3838
return nil
3939
}

cmd/dump.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import (
1717
"code.gitea.io/gitea/models"
1818
"code.gitea.io/gitea/modules/setting"
1919

20-
"github.com/Unknwon/cae/zip"
21-
"github.com/Unknwon/com"
20+
"github.com/unknwon/cae/zip"
21+
"github.com/unknwon/com"
2222
"github.com/urfave/cli"
2323
)
2424

@@ -58,7 +58,6 @@ It can be used for backup and capture Gitea server image to send to maintainer`,
5858
func runDump(ctx *cli.Context) error {
5959
setting.NewContext()
6060
setting.NewServices() // cannot access session settings otherwise
61-
models.LoadConfigs()
6261

6362
err := models.SetEngine()
6463
if err != nil {
@@ -104,8 +103,8 @@ func runDump(ctx *cli.Context) error {
104103
}
105104

106105
targetDBType := ctx.String("database")
107-
if len(targetDBType) > 0 && targetDBType != models.DbCfg.Type {
108-
log.Printf("Dumping database %s => %s...", models.DbCfg.Type, targetDBType)
106+
if len(targetDBType) > 0 && targetDBType != setting.Database.Type {
107+
log.Printf("Dumping database %s => %s...", setting.Database.Type, targetDBType)
109108
} else {
110109
log.Printf("Dumping database...")
111110
}

cmd/hook.go

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ func runHookPreReceive(c *cli.Context) error {
9696
UserID: userID,
9797
GitAlternativeObjectDirectories: os.Getenv(private.GitAlternativeObjectDirectories),
9898
GitObjectDirectory: os.Getenv(private.GitObjectDirectory),
99+
GitQuarantinePath: os.Getenv(private.GitQuarantinePath),
99100
ProtectedBranchID: prID,
100101
})
101102
switch statusCode {

cmd/migrate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func runMigrate(ctx *cli.Context) error {
3030
log.Trace("AppWorkPath: %s", setting.AppWorkPath)
3131
log.Trace("Custom path: %s", setting.CustomPath)
3232
log.Trace("Log path: %s", setting.LogRootPath)
33-
models.LoadConfigs()
33+
setting.InitDBConfig()
3434

3535
if err := models.NewEngine(migrations.Migrate); err != nil {
3636
log.Fatal("Failed to initialize ORM engine: %v", err)

cmd/serv.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
"code.gitea.io/gitea/modules/private"
2323
"code.gitea.io/gitea/modules/setting"
2424

25-
"github.com/Unknwon/com"
2625
"github.com/dgrijalva/jwt-go"
26+
"github.com/unknwon/com"
2727
"github.com/urfave/cli"
2828
)
2929

@@ -109,7 +109,7 @@ func runServ(c *cli.Context) error {
109109
if key.Type == models.KeyTypeDeploy {
110110
println("Hi there! You've successfully authenticated with the deploy key named " + key.Name + ", but Gitea does not provide shell access.")
111111
} else {
112-
println("Hi there: " + user.Name + "! You've successfully authenticated with the key named " + key.Name + ", but Gitea does not provide shell access.")
112+
println("Hi there, " + user.Name + "! You've successfully authenticated with the key named " + key.Name + ", but Gitea does not provide shell access.")
113113
}
114114
println("If this is unexpected, please log in with password and setup Gitea under another user.")
115115
return nil

cmd/web.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818
"code.gitea.io/gitea/routers"
1919
"code.gitea.io/gitea/routers/routes"
2020

21-
"github.com/Unknwon/com"
2221
context2 "github.com/gorilla/context"
22+
"github.com/unknwon/com"
2323
"github.com/urfave/cli"
2424
"golang.org/x/crypto/acme/autocert"
2525
ini "gopkg.in/ini.v1"

contrib/pr/checkout.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ import (
2727
"code.gitea.io/gitea/routers"
2828
"code.gitea.io/gitea/routers/routes"
2929

30-
"github.com/Unknwon/com"
3130
"github.com/go-xorm/xorm"
3231
context2 "github.com/gorilla/context"
32+
"github.com/unknwon/com"
3333
"gopkg.in/src-d/go-git.v4"
3434
"gopkg.in/src-d/go-git.v4/config"
3535
"gopkg.in/src-d/go-git.v4/plumbing"
@@ -79,16 +79,16 @@ func runPR() {
7979
setting.CheckLFSVersion()
8080
//models.LoadConfigs()
8181
/*
82-
models.DbCfg.Type = "sqlite3"
83-
models.DbCfg.Path = ":memory:"
84-
models.DbCfg.Timeout = 500
82+
setting.Database.Type = "sqlite3"
83+
setting.Database.Path = ":memory:"
84+
setting.Database.Timeout = 500
8585
*/
8686
db := setting.Cfg.Section("database")
8787
db.NewKey("DB_TYPE", "sqlite3")
8888
db.NewKey("PATH", ":memory:")
89-
setting.LogSQL = true
90-
models.LoadConfigs()
89+
9190
routers.NewServices()
91+
setting.Database.LogSQL = true
9292
//x, err = xorm.NewEngine("sqlite3", "file::memory:?cache=shared")
9393

9494
var helper testfixtures.Helper = &testfixtures.SQLite{}

custom/conf/app.ini.sample

+14-2
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ DEFAULT_THEME = gitea
116116
THEMES = gitea,arc-green
117117
; Whether the full name of the users should be shown where possible. If the full name isn't set, the username will be used.
118118
DEFAULT_SHOW_FULL_NAME = false
119+
; Whether to search within description at repository search on explore page.
120+
SEARCH_REPO_DESCRIPTION = true
119121

120122
[ui.admin]
121123
; Number of users that are displayed on one page
@@ -275,6 +277,10 @@ LOG_SQL = true
275277
DB_RETRIES = 10
276278
; Backoff time per DB retry (time.Duration)
277279
DB_RETRY_BACKOFF = 3s
280+
; Max idle database connections on connnection pool, default is 0
281+
MAX_IDLE_CONNS = 0
282+
; Database connection max life time, default is 3s
283+
CONN_MAX_LIFETIME = 3s
278284

279285
[indexer]
280286
; Issue indexer type, currently support: bleve or db, default is bleve
@@ -306,7 +312,7 @@ DISABLE_REGULAR_ORG_CREATION = false
306312
INSTALL_LOCK = false
307313
; !!CHANGE THIS TO KEEP YOUR USER DATA SAFE!!
308314
SECRET_KEY = !#@FDEWREWR&*(
309-
; How long to remember that an user is logged in before requiring relogin (in days)
315+
; How long to remember that a user is logged in before requiring relogin (in days)
310316
LOGIN_REMEMBER_DAYS = 7
311317
COOKIE_USERNAME = gitea_awesome
312318
COOKIE_REMEMBER_NAME = gitea_incredible
@@ -401,6 +407,9 @@ DEFAULT_ALLOW_CREATE_ORGANIZATION = true
401407
; Private is only for member of the organization
402408
; Public is for everyone
403409
DEFAULT_ORG_VISIBILITY = public
410+
; Default value for DefaultOrgMemberVisible
411+
; True will make the membership of the users visible when added to the organisation
412+
DEFAULT_ORG_MEMBER_VISIBLE = false
404413
; Default value for EnableDependencies
405414
; Repositories will use dependencies by default depending on this setting
406415
DEFAULT_ENABLE_DEPENDENCIES = true
@@ -547,6 +556,9 @@ MAX_FILES = 5
547556
; Special supported values are ANSIC, UnixDate, RubyDate, RFC822, RFC822Z, RFC850, RFC1123, RFC1123Z, RFC3339, RFC3339Nano, Kitchen, Stamp, StampMilli, StampMicro and StampNano
548557
; For more information about the format see http://golang.org/pkg/time/#pkg-constants
549558
FORMAT =
559+
; Location the UI time display i.e. Asia/Shanghai
560+
; Empty means server's location setting
561+
DEFAULT_UI_LOCATION =
550562

551563
[log]
552564
ROOT_PATH =
@@ -724,7 +736,7 @@ ACCESS_TOKEN_EXPIRATION_TIME=3600
724736
REFRESH_TOKEN_EXPIRATION_TIME=730
725737
; Check if refresh token got already used
726738
INVALIDATE_REFRESH_TOKENS=false
727-
; OAuth2 authentication secret for access and refresh tokens, change this a unique string.
739+
; OAuth2 authentication secret for access and refresh tokens, change this to a unique string.
728740
JWT_SECRET=Bk0yK7Y9g_p56v86KaHqjSbxvNvu3SbKoOdOt2ZcXvU
729741

730742
[i18n]

docker/root/etc/s6/gitea/setup

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ if [ ! -f ${GITEA_CUSTOM}/conf/app.ini ]; then
3131
ROOT_URL=${ROOT_URL:-""} \
3232
DISABLE_SSH=${DISABLE_SSH:-"false"} \
3333
SSH_PORT=${SSH_PORT:-"22"} \
34+
SSH_LISTEN_PORT=${SSH_LISTEN_PORT:-"${SSH_PORT}"} \
3435
LFS_START_SERVER=${LFS_START_SERVER:-"false"} \
3536
DB_TYPE=${DB_TYPE:-"sqlite3"} \
3637
DB_HOST=${DB_HOST:-"localhost:3306"} \

docker/root/etc/templates/app.ini

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ HTTP_PORT = $HTTP_PORT
1717
ROOT_URL = $ROOT_URL
1818
DISABLE_SSH = $DISABLE_SSH
1919
SSH_PORT = $SSH_PORT
20+
SSH_LISTEN_PORT = $SSH_LISTEN_PORT
2021
LFS_START_SERVER = $LFS_START_SERVER
2122
LFS_CONTENT_PATH = /data/git/lfs
2223

docs/config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ params:
1818
description: Git with a cup of tea
1919
author: The Gitea Authors
2020
website: https://docs.gitea.io
21+
version: 1.9.2
2122

2223
menu:
2324
page:

docs/content/doc/advanced/config-cheat-sheet.en-us.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
9696
- `THEMES`: **gitea,arc-green**: All available themes. Allow users select personalized themes
9797
regardless of the value of `DEFAULT_THEME`.
9898
- `DEFAULT_SHOW_FULL_NAME`: false: Whether the full name of the users should be shown where possible. If the full name isn't set, the username will be used.
99+
- `SEARCH_REPO_DESCRIPTION`: true: Whether to search within description at repository search on explore page.
99100

100101
### UI - Admin (`ui.admin`)
101102

@@ -132,6 +133,7 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
132133
- `START_SSH_SERVER`: **false**: When enabled, use the built-in SSH server.
133134
- `SSH_DOMAIN`: **%(DOMAIN)s**: Domain name of this server, used for displayed clone URL.
134135
- `SSH_PORT`: **22**: SSH port displayed in clone URL.
136+
- `SSH_LISTEN_HOST`: **0.0.0.0**: Listen address for the built-in SSH server.
135137
- `SSH_LISTEN_PORT`: **%(SSH\_PORT)s**: Port for the built-in SSH server.
136138
- `OFFLINE_MODE`: **false**: Disables use of CDN for static files and Gravatar for profile pictures.
137139
- `DISABLE_ROUTER_LOG`: **false**: Mute printing of the router log.
@@ -155,7 +157,7 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
155157
## Database (`database`)
156158

157159
- `DB_TYPE`: **mysql**: The database type in use \[mysql, postgres, mssql, sqlite3\].
158-
- `HOST`: **127.0.0.1:3306**: Database host address and port.
160+
- `HOST`: **127.0.0.1:3306**: Database host address and port or absolute path for unix socket \[mysql, postgres\] (ex: /var/run/mysqld/mysqld.sock).
159161
- `NAME`: **gitea**: Database name.
160162
- `USER`: **root**: Database username.
161163
- `PASSWD`: **\<empty\>**: Database user password. Use \`your password\` for quoting if you use special characters in the password.
@@ -165,6 +167,8 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
165167
- `LOG_SQL`: **true**: Log the executed SQL.
166168
- `DB_RETRIES`: **10**: How many ORM init / DB connect attempts allowed.
167169
- `DB_RETRY_BACKOFF`: **3s**: time.Duration to wait before trying another ORM init / DB connect attempt, if failure occured.
170+
- `MAX_IDLE_CONNS` **0**: Max idle database connections on connnection pool, default is 0
171+
- `CONN_MAX_LIFETIME` **3s**: Database connection max lifetime
168172

169173
## Indexer (`indexer`)
170174

@@ -245,6 +249,7 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
245249
- `SHOW_REGISTRATION_BUTTON`: **! DISABLE\_REGISTRATION**: Show Registration Button
246250
- `AUTO_WATCH_NEW_REPOS`: **true**: Enable this to let all organisation users watch new repos when they are created
247251
- `DEFAULT_ORG_VISIBILITY`: **public**: Set default visibility mode for organisations, either "public", "limited" or "private".
252+
- `DEFAULT_ORG_MEMBER_VISIBLE`: **false** True will make the membership of the users visible when added to the organisation.
248253

249254
## Webhook (`webhook`)
250255

@@ -504,8 +509,12 @@ Two special environment variables are passed to the render command:
504509
- `GITEA_PREFIX_SRC`, which contains the current URL prefix in the `src` path tree. To be used as prefix for links.
505510
- `GITEA_PREFIX_RAW`, which contains the current URL prefix in the `raw` path tree. To be used as prefix for image paths.
506511

512+
## Time (`time`)
513+
- `FORMAT`: Time format to diplay on UI. i.e. RFC1123 or 2006-01-02 15:04:05
514+
- `DEFAULT_UI_LOCATION`: Default location of time on the UI, so that we can display correct user's time on UI. i.e. Shanghai/Asia
515+
507516
## Other (`other`)
508517

509518
- `SHOW_FOOTER_BRANDING`: **false**: Show Gitea branding in the footer.
510519
- `SHOW_FOOTER_VERSION`: **true**: Show Gitea version information in the footer.
511-
- `SHOW_FOOTER_TEMPLATE_LOAD_TIME`: **true**: Show time of template execution in the footer.
520+
- `SHOW_FOOTER_TEMPLATE_LOAD_TIME`: **true**: Show time of template execution in the footer.

docs/content/doc/advanced/config-cheat-sheet.zh-cn.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ menu:
8282
- `CHARSET`: **utf8**: 仅当数据库为 MySQL 时有效, 可以为 "utf8" 或 "utf8mb4"。注意:如果使用 "utf8mb4",你的 MySQL InnoDB 版本必须在 5.6 以上。
8383
- `PATH`: Tidb 或者 SQLite3 数据文件存放路径。
8484
- `LOG_SQL`: **true**: 显示生成的SQL,默认为真。
85+
- `MAX_IDLE_CONNS` **0**: 最大空闲数据库连接
86+
- `CONN_MAX_LIFETIME` **3s**: 数据库连接最大存活时间
8587

8688
## Indexer (`indexer`)
8789

@@ -237,7 +239,9 @@ IS_INPUT_FILE = false
237239
- RENDER_COMMAND: 工具的命令行命令及参数。
238240
- IS_INPUT_FILE: 输入方式是最后一个参数为文件路径还是从标准输入读取。
239241

240-
242+
## Time (`time`)
243+
- `FORMAT`: 显示在界面上的时间格式。比如: RFC1123 或者 2006-01-02 15:04:05
244+
- `DEFAULT_UI_LOCATION`: 默认显示在界面上的时区,默认为本地时区。比如: Asia/Shanghai
241245

242246
## Other (`other`)
243247

0 commit comments

Comments
 (0)