tonysamperi / ts-luxon

Typescript based Luxon: ⏱ A library for working with dates and times in TS and JS (immutable)
https://tonysamperi.github.io/ts-luxon
MIT License
13 stars 3 forks source link

Parsing dates generated by the browser creates invalid datetimes cause of NNBSP #4

Closed tonysamperi closed 1 year ago

tonysamperi commented 1 year ago

Describe the bug After the last update of Chromium 110, generated Dates with Meridiem can't be parsed correctly due to NNBSP

see https://github.com/tonysamperi/ngx-mat-timepicker/issues/51

To Reproduce

    const dto = DateTime.fromFormat("3:22 AM", "h:m a", {
        numberingSystem: "latn",
        locale: "en-US"
    });

Actual vs Expected behavior dto is expected to be valid, but it is invalid due to parse error

Desktop (please complete the following information):