Skip to content

Commit

Permalink
Fix the location of now
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Aug 2, 2022
1 parent 61fa5ad commit e2926a0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions exporters/stdout/stdoutmetric/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (

var (
// Sat Jan 01 2000 00:00:00 GMT+0000.
now = time.Unix(946684800, 0)
now = time.Date(2000, time.January, 01, 0, 0, 0, 0, time.FixedZone("GMT", 0))

res = resource.NewSchemaless(
semconv.ServiceNameKey.String("stdoutmetric-example"),
Expand Down Expand Up @@ -161,8 +161,8 @@ func Example() {
// }
// }
// ],
// "StartTime": "1999-12-31T16:00:00-08:00",
// "Time": "1999-12-31T16:00:01-08:00",
// "StartTime": "2000-01-01T00:00:00Z",
// "Time": "2000-01-01T00:00:01Z",
// "Value": 5
// }
// ],
Expand All @@ -186,8 +186,8 @@ func Example() {
// }
// }
// ],
// "StartTime": "1999-12-31T16:00:00-08:00",
// "Time": "1999-12-31T16:00:01-08:00",
// "StartTime": "2000-01-01T00:00:00Z",
// "Time": "2000-01-01T00:00:01Z",
// "Count": 10,
// "Bounds": [
// 1,
Expand Down Expand Up @@ -223,7 +223,7 @@ func Example() {
// }
// ],
// "StartTime": "0001-01-01T00:00:00Z",
// "Time": "1999-12-31T16:00:01-08:00",
// "Time": "2000-01-01T00:00:01Z",
// "Value": 32.4
// }
// ]
Expand Down

0 comments on commit e2926a0

Please sign in to comment.