Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datetime function ignores timezone #106

Open
aqos156 opened this issue Aug 27, 2021 · 0 comments
Open

Datetime function ignores timezone #106

aqos156 opened this issue Aug 27, 2021 · 0 comments

Comments

@aqos156
Copy link

aqos156 commented Aug 27, 2021

As written in title, the datetime templating function completely ignores the timezone.

{{datetime build.started "2006-Jan-02T15:04:05Z" "CEST"}}
{{datetime build.started "2006-Jan-02T15:04:05Z" "GMT+2"}}
{{datetime build.started "2006-Jan-02T15:04:05Z" "0200"}}
{{datetime build.started "2006-Jan-02T15:04:05Z" "Europe/Berlin"}}

Neither one of them sets the correct timezone. Everytime the UTC format is displayed.

Expected: 2021-Aug-27T12:36:00
Received: 2021-Aug-27T10:36:00

Using the latest image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant