Skip to content

How to change locale for playwright html report generation? #35

@jpoesen

Description

@jpoesen

Summary

HTML report date shown in MM/DD/YYYY format:

Image

Attempts to change format to DD/MM/YYYY unsuccessful.

Details

I understand that this may not be the right place to ask this.

Playwright's html test reports print the date as MM/DD/YYYY.

Nor being a docker or javascript specialist, I think I've been able to deduce that playwright uses

Intl.DateTimeFormat()

which uses the environment's locale / timezone settings.

I've tried to change the locale and timezone in various ways, but I'm shooting in the dark and not even 100% sure changing locale/TZ is what I should be doing to change the date format.

Playwright offers very few report customisation options other than writing your own fully custom reporting, which would be a silly thing to have to do just to change a date format.

Any hints greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions