We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c5ed1ca + e8d4b7a commit 3e0250cCopy full SHA for 3e0250c
transform/eleven/eleven.go
@@ -20,14 +20,14 @@ func New() transform.Transformer {
20
21
timeFormat := os.Getenv(EnvTimeFormat)
22
if timeFormat == "" {
23
- timeFormat = "2006-01-02T15:04:05.000Z"
+ timeFormat = "2006-01-02T15:04:05.000Z07:00"
24
}
25
26
return func(rec *types.Record) (*types.Record, error) {
27
rec.Fields["product"] = product
28
rec.Fields["component"] = component
29
30
- formattedTime := rec.Time.Format(timeFormat)
+ formattedTime := rec.Time.UTC().Format(timeFormat)
31
rec.Fields["when"] = formattedTime
32
return rec, nil
33
0 commit comments