diff --git a/features/data/configs/bug153.json b/features/data/configs/bug153.json new file mode 100644 index 00000000..ad617928 --- /dev/null +++ b/features/data/configs/bug153.json @@ -0,0 +1,14 @@ +{ + "default_hour": 9, + "timeformat": "%Y-%m-%d %H:%M", + "linewrap": 80, + "encrypt": false, + "editor": "", + "default_minute": 0, + "highlight": true, + "password": "", + "journals": { + "default": "features/journals/bug153.dayone" + }, + "tagsymbols": "@" +} diff --git a/features/data/journals/bug153.dayone/entries/B40EE704E15846DE8D45C44118A4D511.doentry b/features/data/journals/bug153.dayone/entries/B40EE704E15846DE8D45C44118A4D511.doentry new file mode 100644 index 00000000..745a08df --- /dev/null +++ b/features/data/journals/bug153.dayone/entries/B40EE704E15846DE8D45C44118A4D511.doentry @@ -0,0 +1,56 @@ + + + + + Creation Date + 2013-10-27T02:27:27Z + Creator + + Device Agent + iPhone/iPhone3,1 + Generation Date + 2013-10-27T07:02:27Z + Host Name + omrt104001 + OS Agent + iOS/7.0.3 + Software Agent + Day One (iOS)/1.11.4 + + Entry Text + Some text. + Location + + Administrative Area + Östergötlands län + Country + Sverige + Latitude + 58.383400000000000 + Locality + City + Longitude + 15.577170000000000 + Place Name + Street + + Starred + + Time Zone + Europe/Stockholm + UUID + B40EE704E15846DE8D45C44118A4D511 + Weather + + Celsius + 12 + Description + Clear + Fahrenheit + 54 + IconName + sunnyn.png + + + diff --git a/features/regression.feature b/features/regression.feature index af2c01f8..029c257c 100644 --- a/features/regression.feature +++ b/features/regression.feature @@ -20,3 +20,13 @@ Feature: Zapped bugs should stay dead. When we run "jrnl 2013-11-30 15:42: Project Started." Then we should see the message "Entry added" and the journal should contain "2013-11-30 15:42 Project Started." + + Scenario: Loading entry with ambiguous time stamp + #https://github.com/maebert/jrnl/issues/153 + Given we use the config "bug153.json" + When we run "jrnl -1" + Then we should get no error + and the output should be + """ + 2013-10-27 03:27 Some text. + """