Skip to content

Reflection.SetNauAttributes doesn't parse date string correctly if OS is not set to English #121

@sonntam

Description

@sonntam

The method Reflection.SetNauAttributes() fails on my windows machine that is set to German if I try to read a file date from the XML to set the property of a FileDateCondition.

The date of the example file SampleUpdateFeed.xml, i.e. 20091010T000000 is not parsed correctly.
I made a fix in my fork that uses the InvariantCulture from System.Globalizationfor the TryParse() call and adds a layer that tries to parse the above format explicitly.

Maybe you could have a look at my fix and possibly do a cherry-pick: sonntam/NAppUpdate@33f7b8c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions