Skip to content

Commit

Permalink
fix(carbon): upgrade v1.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrix-X committed Nov 24, 2021
1 parent d5a68c7 commit 98fb714
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion carbon/carbonDatetime.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (dt *CarbonDatetime) SetDatetime(c carbon.Carbon) {
}

func (dt *CarbonDatetime) SetTimezone(timezone string) *CarbonDatetime {
dt.C.Loc, dt.C.Error = time.LoadLocation(timezone)
dt.C.SetTimezone(timezone)
dt.C.AddHours(8)

return dt
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module github.com/ArtisanCloud/PowerLibs

go 1.16
go 1.17

require (
github.com/go-redis/redis/v8 v8.11.0
github.com/golang-module/carbon v1.3.5
github.com/golang-module/carbon v1.5.5
github.com/guonaihong/gout v0.2.9
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/stretchr/testify v1.7.0
Expand Down

0 comments on commit 98fb714

Please sign in to comment.