Skip to content

Long time formats for Czech do not include number of hours #2921

@KucharczykL

Description

@KucharczykL

Hello,

it seems that the definition of long time formats for the Czech language (in https://github.com/date-fns/date-fns/blob/master/src/locale/cs/_lib/formatLong/index.ts#L11) uses H instead of HH unlike other locales. This then results in weird behavior when switching between languages because strings like 1 hours 15 minutes change to hour 15 minutes (in Czech).

This behaviour was encountered in jellyfin-vue that uses date-fns 2.28.0 (https://github.com/jellyfin/jellyfin-vue/blob/master/package.json#L46).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions