ckan / ckanext-datastorer

Get files from ckan into the webstore.
21 stars 18 forks source link

Fields containing only the letter 'A' are parsed as dates #66

Closed ThrawnCA closed 1 year ago

ThrawnCA commented 10 years ago

DateUtil thinks that it can interpret the letter 'A' as a date (the current day). Possibly it is treating it as an abbreviation of 'AM'?

We have data containing single-character fields, including the letter A, so this is causing us problems.

One possible fix is to give types.DateUtilType a 'test' function:

    def test(self, value):
        if len(value) == 1:
            return False
        return CellType.test(self, value)
ThrawnCA commented 1 year ago

This is obsolete.