about summary refs log tree commit diff
path: root/data/trips.csv
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-08-02T18·44+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-08-02T18·44+0100
commit0cb9642a8acdd7d6a7a63eba3ccd98d0238a0bcb (patch)
tree3bfb38a1127d22f81ef28db02d08f6e138ec8633 /data/trips.csv
parent1d5cf2e4b57aa62e1867b6866e205bba8fdcc9a7 (diff)
Use valid dates for Trips.endDate in trips.csv
TL;DR: My trips.csv had invalid dates for the endDate column. "2020-15-30" is an
"invalid date" (according to FromField instance for Calendar.Day) bc 15 is not a
valid month (i.e. [1,12]).

@dmjio helped me take a look. When we poked around the SQL, we discovered:

```sql
SELECT endDate FROM TRIPS;       -- shows three records
SELECT date(endDate) FROM TRIPS; -- shows two records
```
Diffstat (limited to 'data/trips.csv')
-rw-r--r--data/trips.csv6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/trips.csv b/data/trips.csv
index 3377efeba4a1..a583c750f77c 100644
--- a/data/trips.csv
+++ b/data/trips.csv
@@ -1,3 +1,3 @@
-mimi,Rome,2020-08-10,2020-15-30,Heading home before the upcoming trip with Panarea.
-mimi,Panarea,2020-08-15,2020-05-30,Exciting upcoming trip with Matt and Sarah!
-mimi,London,2020-08-30,2020-08-30,Heading back to London...
\ No newline at end of file
+mimi,Rome,2020-08-10,2020-08-12,Heading home before the upcoming trip with Panarea.
+mimi,Panarea,2020-08-15,2020-08-28,Exciting upcoming trip with Matt and Sarah!
+mimi,London,2020-08-30,2020-09-15,Heading back to London...
\ No newline at end of file