Compare commits
2 Commits
copierutil
...
v1.1.25
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89a69a9d4d | ||
|
|
63789d090d |
@@ -11,7 +11,7 @@ require (
|
||||
github.com/go-kratos/kratos/v2 v2.8.4
|
||||
github.com/google/uuid v1.6.0
|
||||
github.com/stretchr/testify v1.10.0
|
||||
github.com/tx7do/go-utils v1.1.22
|
||||
github.com/tx7do/go-utils v1.1.24
|
||||
go.opentelemetry.io/otel v1.36.0
|
||||
google.golang.org/protobuf v1.36.6
|
||||
)
|
||||
@@ -23,7 +23,7 @@ require (
|
||||
github.com/bmatcuk/doublestar v1.3.4 // indirect
|
||||
github.com/bufbuild/protocompile v0.14.1 // indirect
|
||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||
github.com/go-logr/logr v1.4.2 // indirect
|
||||
github.com/go-logr/logr v1.4.3 // indirect
|
||||
github.com/go-logr/stdr v1.2.2 // indirect
|
||||
github.com/go-openapi/inflect v0.21.2 // indirect
|
||||
github.com/golang/protobuf v1.5.4 // indirect
|
||||
|
||||
@@ -23,6 +23,8 @@ github.com/go-kratos/kratos/v2 v2.8.4/go.mod h1:mq62W2101a5uYyRxe+7IdWubu7gZCGYq
|
||||
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
|
||||
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
|
||||
github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
|
||||
github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI=
|
||||
github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
|
||||
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
|
||||
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
|
||||
github.com/go-openapi/inflect v0.21.2 h1:0gClGlGcxifcJR56zwvhaOulnNgnhc4qTAkob5ObnSM=
|
||||
|
||||
4
tag.bat
4
tag.bat
@@ -1,4 +1,4 @@
|
||||
git tag v1.1.24
|
||||
git tag v1.1.25
|
||||
|
||||
git tag bank_card/v1.1.5
|
||||
git tag geoip/v1.1.5
|
||||
@@ -6,7 +6,7 @@ git tag translator/v1.1.2
|
||||
git tag copierutil/v0.0.4
|
||||
git tag jwtutil/v0.0.2
|
||||
|
||||
git tag entgo/v1.1.28
|
||||
git tag entgo/v1.1.29
|
||||
git tag gorm/v1.1.6
|
||||
|
||||
git push origin --tags
|
||||
|
||||
@@ -33,10 +33,7 @@ func UnixMilliToStringPtr(milli *int64) *string {
|
||||
|
||||
tm := time.UnixMilli(*milli)
|
||||
|
||||
// 设置默认时区
|
||||
tm.In(GetDefaultTimeLocation())
|
||||
|
||||
str := tm.Format(TimeLayout)
|
||||
str := tm.In(GetDefaultTimeLocation()).Format(TimeLayout)
|
||||
return &str
|
||||
}
|
||||
|
||||
@@ -133,10 +130,7 @@ func TimeToTimeString(tm *time.Time) *string {
|
||||
return nil
|
||||
}
|
||||
|
||||
// 设置默认时区
|
||||
tm.In(GetDefaultTimeLocation())
|
||||
|
||||
return trans.String(tm.Format(TimeLayout))
|
||||
return trans.String(tm.In(GetDefaultTimeLocation()).Format(TimeLayout))
|
||||
}
|
||||
|
||||
// StringDateToTime 字符串 -> 时间
|
||||
@@ -175,10 +169,7 @@ func TimeToDateString(tm *time.Time) *string {
|
||||
return nil
|
||||
}
|
||||
|
||||
// 设置默认时区
|
||||
tm.In(GetDefaultTimeLocation())
|
||||
|
||||
return trans.String(tm.Format(DateLayout))
|
||||
return trans.String(tm.In(GetDefaultTimeLocation()).Format(DateLayout))
|
||||
}
|
||||
|
||||
// TimestamppbToTime timestamppb.Timestamp -> time.Time
|
||||
|
||||
Reference in New Issue
Block a user