mirror of
https://github.com/ZSCNetSupportDept/scheduler.git
synced 2025-10-28 20:45:05 +08:00
修改
This commit is contained in:
@@ -2,6 +2,7 @@ package config
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/golang-module/carbon/v2"
|
||||
"github.com/spf13/viper"
|
||||
"os"
|
||||
)
|
||||
@@ -22,6 +23,13 @@ func Load() {
|
||||
handleArguments()
|
||||
}
|
||||
|
||||
carbon.SetDefault(carbon.Default{
|
||||
Layout: carbon.DateTimeLayout,
|
||||
Timezone: carbon.PRC,
|
||||
WeekStartsAt: carbon.Sunday,
|
||||
Locale: "zh-CN", // 取值范围:lang 目录下翻译文件名,不包含文件后缀
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
func check() {
|
||||
|
||||
Reference in New Issue
Block a user