Skip to content

Kemi: product drawer shows midnight dates without the UTC zone #1460

Open

Description

@renemadsen

What is wrong

The product drawer formats full ISO midnights (sales deadline, use-and-possession deadline, authorisation and deregistration dates) with the date pipe without the 'UTC' zone. West of UTC the drawer shows the day before. Kemi users are in Denmark, so it is latent, but the settings page (W5) already passes 'UTC'.

Where (stable a81a41b)

eform-client/src/app/plugins/modules/backend-configuration-pn/modules/chemicals/components/chemical-product-drawer/chemical-product-drawer.component.html:32,35-38

Suggested fix

Add : 'dd-MM-yyyy' : 'UTC' to those date pipes, as W5 does (chemical-settings-page.component.html:115). Add a DOM spec in a non-UTC timezone if the test setup allows it.

Origin

Plan E final review m-5, PR #1437 (merged as a81a41b).

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions