Skip to content

Parsing dates in NIRx file for non-english locales fails #8219

Open

Description

@rob-luke

Describe the bug

Parsing dates in NIRx files does not work reliably for non English files.

Steps to reproduce

See #7891 and test test_encoding() in test_nirx.py.

Expected results

Date should be read correctly.

Actual results

Currently reading of date fails and the date is set to Jan 1st 2000

Additional information

To address this issue we need to know the date format for non English files. If non standard month naming is used (French) we need to know the non standard names used. If someone encounters this issue, it would be good to contact the vendor too.

Activity

  1. changed the title [-]Parsing dates in NIRx file for non-english locales[/-] [+]Parsing dates in NIRx file for non-english locales fails[/+] on Sep 8, 2020
  2. cbrnr commented on Sep 21, 2020

    @cbrnr
    Contributor

    As discussed in #8283, we should probably set invalid dates to None.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions