jrnl/features/data/configs
Peter Schmidbauer 7f46d1a40a Fix handling of little-endian date format
Ever since version 2.0, when parsing a journal file, jrnl would not use
the custom date format string anymore. Instead, it relied on the
dateutil library to get the parsing right. This change was made to allow
people to change their date format without having to manually change
their file. However, this broke some existing date formats like
%d.%m.%Y, as it would falsely interpret the month as day and vice versa.
This commit adds some tests to catch this error and fixes it by trying
to parse the dates using the custom format first, only falling back to
dateutil when needed.
2020-04-10 11:51:55 -07:00
..
basic.yaml User defined indent character (#419) 2016-04-15 23:00:49 -07:00
brackets.yaml [GH-614] resolving issues around unreadable dates and unparsed dates 2020-04-10 11:51:55 -07:00
bug153.yaml User defined indent character (#419) 2016-04-15 23:00:49 -07:00
bug343.yaml User defined indent character (#419) 2016-04-15 23:00:49 -07:00
dayone.yaml User defined indent character (#419) 2016-04-15 23:00:49 -07:00
empty_folder.yaml User defined indent character (#419) 2016-04-15 23:00:49 -07:00
encrypted.yaml User defined indent character (#419) 2016-04-15 23:00:49 -07:00
encrypted_old.json Work on cryptography 2014-09-27 13:15:46 -07:00
encrypted_old.yaml User defined indent character (#419) 2016-04-15 23:00:49 -07:00
little_endian_dates.yaml Fix handling of little-endian date format 2020-04-10 11:51:55 -07:00
markdown-headings-335.yaml User defined indent character (#419) 2016-04-15 23:00:49 -07:00
mostlyreadabledates.yaml [GH-614] resolving issues around unreadable dates and unparsed dates 2020-04-10 11:51:55 -07:00
multiple.yaml Create encrypted journal 2020-04-10 11:51:55 -07:00
tags-216.yaml User defined indent character (#419) 2016-04-15 23:00:49 -07:00
tags-237.yaml User defined indent character (#419) 2016-04-15 23:00:49 -07:00
tags.yaml User defined indent character (#419) 2016-04-15 23:00:49 -07:00
unreadabledates.yaml [GH-614] resolving issues around unreadable dates and unparsed dates 2020-04-10 11:51:55 -07:00
upgrade_from_195.json Tests for parsing issue fix 2015-04-05 18:38:37 +02:00
upgrade_from_195_little_endian_dates.json Fix handling of little-endian date format 2020-04-10 11:51:55 -07:00