Skip to content

Extra dot after month with Norsk Bokmål locale #2948

@millerdev

Description

@millerdev

Prerequisites

  • I have searched for duplicate or closed issues.
  • I have validated my setup against the latest version on StackBlitz.
  • I have read the contributing guidelines.
  • I understand that only sponsored issues will be worked on and that if I wish to sponsor an issue, I will contact the owner FIRST.

Describe the issue

When a date format like M.d.yyyy is specified, the dates have an trailing dot (.) after the month (M).

Reproduction steps:

  • Set your browser's language to Norsk Bokmål or Norwegian Bokmål
  • Go to https://getdatepicker.com/6/repl.html
  • Paste this code:
    import { TempusDominus } from '@eonasdan/tempus-dominus';
    
    new TempusDominus(document.getElementById('datetimepicker1'), {
      "localization": {"format": "M.d.yyyy"}
    });
  • Choose March 4, 2025 in the picker.

Expected:

Date should be displayed as 3.4.2025

Observed

Date is displayed as 3..4.2025

StackBlitz fork

https://stackblitz.com/edit/tempus-dominus-v6-simple-setup-k3zbsxj6?file=index.js

What operating system(s) are you seeing the problem on?

Linux. Other members of my team have also reproduced it on macOS

What browser(s) are you seeing the problem on?

Firefox. Other members of my team have reproduced on Chrome.

What version of are you using? You can find this information from the sample StackBlitz.

v6.9.4

What your browser's locale? You can find this information from the sample StackBlitz.

nb-NO

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions