Skip to content

Commit 3eec9a2

Browse files
Direct msgp to decode time.Time in UTC for all time values
1 parent a130ab9 commit 3eec9a2

25 files changed

+88
-70
lines changed

bucket-targets.go

+1
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

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

external.go

+1
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

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ go 1.24.0
44

55
toolchain go1.24.2
66

7+
replace github.com/tinylib/msgp v1.2.5 => github.com/klauspost/msgp v1.1.6-0.20250506154734-b646eabda3d7
8+
79
// Install tools using 'go install tool'.
810
tool (
911
github.com/tinylib/msgp

heal-commands.go

+1
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

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

info-commands.go

+1
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

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

info-v4-commands.go

+1
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

+1
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

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

metrics.go

+1
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)