Github pipeline not in AU tz :D

This commit is contained in:
Mike Farah 2023-02-02 12:47:59 +11:00
parent 75920481b1
commit f9f340b6bf
2 changed files with 4 additions and 4 deletions

View File

@ -91,11 +91,11 @@ Converts from unix time
Running Running
```bash ```bash
yq --null-input '1675301929 | from_unix' yq --null-input '1675301929 | from_unix | tz("UTC")'
``` ```
will output will output
```yaml ```yaml
2023-02-02T12:38:49+11:00 2023-02-02T01:38:49Z
``` ```
## Timezone: from standard RFC3339 format ## Timezone: from standard RFC3339 format

View File

@ -42,9 +42,9 @@ var dateTimeOperatorScenarios = []expressionScenario{
{ {
description: "From Unix", description: "From Unix",
subdescription: "Converts from unix time", subdescription: "Converts from unix time",
expression: `1675301929 | from_unix`, expression: `1675301929 | from_unix | tz("UTC")`,
expected: []string{ expected: []string{
"D0, P[], (!!timestamp)::2023-02-02T12:38:49+11:00\n", "D0, P[], (!!timestamp)::2023-02-02T01:38:49Z\n",
}, },
}, },
{ {