Skip to content

Commit

Permalink
Amend the backfill script as further testing detected it was not hand…
Browse files Browse the repository at this point in the history
…ling hours correctly or interpreting the Z timezone as UTC.
  • Loading branch information
lbestatlas committed Oct 18, 2024
1 parent 27a9355 commit ca60fca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- Optional back-fill script to populate updateTime historically.
UPDATE workflow_index
SET update_time = to_timestamp(json_data->>'updateTime', 'YYYY-MM-DDTHH24:MI:SS.MSZ')::timestamp WITH time zone
SET update_time = to_timestamp(json_data->>'updateTime', 'YYYY-MM-DD"T"HH24:MI:SS.MS')::timestamp AT TIME ZONE '00:00'
WHERE json_data->>'updateTime' IS NOT NULL;

0 comments on commit ca60fca

Please sign in to comment.