Skip to content

Commit 1c2e1cf

Browse files
author
jikun.zhang
committed
�fix 编译错误
Signed-off-by: jikun.zhang <jikun.zhang@megatronix.co>
1 parent 04457bf commit 1c2e1cf

File tree

3 files changed

+31
-121
lines changed

3 files changed

+31
-121
lines changed

controllers/public.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ func GetTimeDuration(startTime string,endTime string) string {
8989

9090
// 转换任意时区到CST
9191
func GetCSTtime(date string) string {
92-
var t time.Time
92+
var t time.Time
93+
var cstLoc *time.Location
94+
cstLoc = time.FixedZone("CST", 8*3600)
9395
if date == "" {
9496
// 获取当前时间并转换为 CST
9597
t = time.Now().In(cstLoc)

go.mod

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ go 1.20
55
require (
66
github.com/IBM/sarama v1.43.2
77
github.com/aliyun/alibaba-cloud-sdk-go v1.62.771
8-
github.com/astaxie/beego v1.12.3
8+
github.com/astaxie/beego v1.12.1
99
github.com/baidubce/bce-sdk-go v0.9.183
1010
github.com/elastic/go-elasticsearch/v7 v7.17.10
1111
github.com/go-gomail/gomail v0.0.0-20160411212932-81ebce5c23df
1212
github.com/go-sql-driver/mysql v1.8.1
1313
github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1
1414
github.com/lib/pq v1.10.9
15-
github.com/mattn/go-sqlite3 v2.0.3+incompatible
15+
github.com/mattn/go-sqlite3 v1.14.32
1616
github.com/prometheus/client_golang v1.19.1
1717
github.com/robfig/cron/v3 v3.0.1
1818
github.com/smartystreets/goconvey v1.8.1
@@ -33,7 +33,6 @@ require (
3333
github.com/hashicorp/errwrap v1.0.0 // indirect
3434
github.com/hashicorp/go-multierror v1.1.1 // indirect
3535
github.com/hashicorp/go-uuid v1.0.3 // indirect
36-
github.com/hashicorp/golang-lru v0.5.4 // indirect
3736
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
3837
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect
3938
github.com/jcmturner/gofork v1.7.6 // indirect
@@ -47,18 +46,18 @@ require (
4746
github.com/modern-go/reflect2 v1.0.2 // indirect
4847
github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b // indirect
4948
github.com/pierrec/lz4/v4 v4.1.21 // indirect
50-
github.com/pkg/errors v0.9.1 // indirect
5149
github.com/pmezard/go-difflib v1.0.0 // indirect
5250
github.com/prometheus/client_model v0.5.0 // indirect
5351
github.com/prometheus/common v0.48.0 // indirect
5452
github.com/prometheus/procfs v0.12.0 // indirect
5553
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
5654
github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644 // indirect
5755
github.com/smarty/assertions v1.15.0 // indirect
58-
golang.org/x/crypto v0.31.0 // indirect
56+
golang.org/x/crypto v0.22.0 // indirect
5957
golang.org/x/net v0.24.0 // indirect
60-
golang.org/x/sys v0.28.0 // indirect
61-
golang.org/x/text v0.21.0 // indirect
58+
golang.org/x/sync v0.16.0 // indirect
59+
golang.org/x/sys v0.19.0 // indirect
60+
golang.org/x/text v0.14.0 // indirect
6261
google.golang.org/protobuf v1.33.0 // indirect
6362
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
6463
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df // indirect

0 commit comments

Comments
 (0)