Skip to content

Commit ee98782

Browse files
Direct msgp to decode time.Time in UTC for all time values (#385)
1 parent a130ab9 commit ee98782

26 files changed

+89
-73
lines changed

bucket-targets.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727

2828
//msgp:clearomitted
2929
//msgp:tag json
30+
//msgp:timezone utc
3031
//go:generate msgp
3132

3233
// BucketTargets represents a slice of bucket targets by type and endpoint

bucket-targets_gen.go

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

external.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ package madmin
2424

2525
//msgp:clearomitted
2626
//msgp:tag json
27+
//msgp:timezone utc
2728
//go:generate msgp -unexported -file $GOFILE
2829

2930
type cpuTimesStat struct {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ require (
2121
github.com/safchain/ethtool v0.5.10
2222
github.com/secure-io/sio-go v0.3.1
2323
github.com/shirou/gopsutil/v4 v4.25.4
24-
github.com/tinylib/msgp v1.2.5
24+
github.com/tinylib/msgp v1.3.0
2525
golang.org/x/crypto v0.37.0
2626
golang.org/x/net v0.39.0
2727
gopkg.in/yaml.v3 v3.0.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ github.com/shirou/gopsutil/v4 v4.25.4 h1:cdtFO363VEOOFrUCjZRh4XVJkb548lyF0q0uTeM
7272
github.com/shirou/gopsutil/v4 v4.25.4/go.mod h1:xbuxyoZj+UsgnZrENu3lQivsngRR5BdjbJwf2fv4szA=
7373
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
7474
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
75-
github.com/tinylib/msgp v1.2.5 h1:WeQg1whrXRFiZusidTQqzETkRpGjFjcIhW6uqWH09po=
76-
github.com/tinylib/msgp v1.2.5/go.mod h1:ykjzy2wzgrlvpDCRc4LA8UXy6D8bzMSuAF3WD57Gok0=
75+
github.com/tinylib/msgp v1.3.0 h1:ULuf7GPooDaIlbyvgAxBV/FI7ynli6LZ1/nVUNu+0ww=
76+
github.com/tinylib/msgp v1.3.0/go.mod h1:ykjzy2wzgrlvpDCRc4LA8UXy6D8bzMSuAF3WD57Gok0=
7777
github.com/tklauser/go-sysconf v0.3.15 h1:VE89k0criAymJ/Os65CSn1IXaol+1wrsFHEB8Ol49K4=
7878
github.com/tklauser/go-sysconf v0.3.15/go.mod h1:Dmjwr6tYFIseJw7a3dRLJfsHAMXZ3nEnL/aZY+0IuI4=
7979
github.com/tklauser/numcpus v0.10.0 h1:18njr6LDBk1zuna922MgdjQuJFjrdppsZG60sHGfjso=

heal-commands.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import (
3232

3333
//msgp:clearomitted
3434
//msgp:tag json
35+
//msgp:timezone utc
3536
//go:generate msgp -file $GOFILE
3637

3738
// HealScanMode represents the type of healing scan

heal-commands_gen.go

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

info-commands.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import (
3030

3131
//msgp:clearomitted
3232
//msgp:tag json
33+
//msgp:timezone utc
3334
//go:generate msgp -file $GOFILE
3435

3536
// BackendType - represents different backend types.

info-commands_gen.go

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

info-v4-commands.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import (
3333

3434
//msgp:clearomitted
3535
//msgp:tag json
36+
//msgp:timezone utc
3637
//go:generate msgp -file $GOFILE
3738

3839
// ClusterInfo cluster level information

license.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import (
2828

2929
//msgp:clearomitted
3030
//msgp:tag json
31+
//msgp:timezone utc
3132
//go:generate msgp
3233
// LicenseInfo is a structure containing MinIO license information.
3334

license_gen.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

metrics.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import (
3939

4040
//msgp:clearomitted
4141
//msgp:tag json
42+
//msgp:timezone utc
4243
//go:generate msgp -unexported -file $GOFILE
4344

4445
// MetricType is a bitfield representation of different metric types.

0 commit comments

Comments
 (0)