Skip to content

Commit ca60fca

Browse files
committed
Amend the backfill script as further testing detected it was not handling hours correctly or interpreting the Z timezone as UTC.
1 parent 27a9355 commit ca60fca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-- Optional back-fill script to populate updateTime historically.
22
UPDATE workflow_index
3-
SET update_time = to_timestamp(json_data->>'updateTime', 'YYYY-MM-DDTHH24:MI:SS.MSZ')::timestamp WITH time zone
3+
SET update_time = to_timestamp(json_data->>'updateTime', 'YYYY-MM-DD"T"HH24:MI:SS.MS')::timestamp AT TIME ZONE '00:00'
44
WHERE json_data->>'updateTime' IS NOT NULL;

0 commit comments

Comments
 (0)