Skip to content

Datetime function ignores timezone #106

@aqos156

Description

@aqos156

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions