fix: tree fixes (#252)

* use case insensitive sort

* support new location selector in create item

* fix incorrect date-time parsing logic
This commit is contained in:
Hayden 2023-01-29 13:20:18 -09:00 committed by GitHub
parent cbac17c059
commit 7b28973c60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View file

@ -26,9 +26,7 @@ export function parseDate<T>(obj: T, keys: Array<keyof T> = []): T {
return;
}
// Ensure date like format YYYY/MM/DD - otherwise results will be 1 day off
const dateStr: string = result[key].split("T")[0].replace(/-/g, "/");
result[key] = new Date(dateStr);
result[key] = new Date(result[key]);
}
});