Skip to content

Commit 8adb927

Browse files
committed
Updates
1 parent a575ee9 commit 8adb927

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/vote_event.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ SELECT
2323
motion_classification::TEXT[] AS motion_classification,
2424
CASE
2525
WHEN start_date = '' THEN NULL
26-
WHEN LENGTH(start_date::VARCHAR) = 10 THEN
26+
WHEN STRPOS(start_date::VARCHAR, 'T') = 0 THEN
2727
STRPTIME(start_date::VARCHAR, '%Y-%m-%d')
2828
ELSE
2929
STRPTIME(start_date::VARCHAR, '%Y-%m-%dT%H:%M:%S%z') -- CA, CO, FL, OR, PA, IA, WI, USA, NY, NV, NJ, NE, NC, ND, MO, IN

0 commit comments

Comments
 (0)