Rupert Bedford

Results 5 comments of Rupert Bedford

python-dateutil 2.5.3 parses the above correctly. However there's another issue with the day and month being swapped: ``` python >>> from delorean import parse >>> parse('2015-01-02').date datetime.date(2015, 2, 1) >>>...

Looks like there is a bug with the `dayfirst` argument to `dateutil.parser.parse`. In python-dateutil 2.5.1: ``` python >>> from dateutil.parser import parse >>> parse('2015-01-02') datetime.datetime(2015, 1, 2, 0, 0) >>>...

In the latest version of `dateutil` (2.5.3) with `dayfirst=True` and `yearfirst=True` (the `delorean` defaults), `XXXX-XX-XX` will be parsed as `YYYY-DD-MM` (unless the last part is `> 12` where it will...

Unfortunately I don't think you can handle ISO 8601 dates and something like `DD/MM/YYYY` (sensible default rather than `MM/DD/YYYY`) with the same `datefirst` argument in `dateutil` 2.5.3. `dayfirst=False` parses ISO...

Another option is pinning `dateutil` to `