Skip to content

Commit

Permalink
GAP-2533: Retrospectively fix BST ads in prod (#276)
Browse files Browse the repository at this point in the history
* GAP-2533: Retrospectively fix BST ads in prod

* GAP-2533: Including release time

* GAP-2533: Overriding UTC opening/closing dates as Europe/London time

* GAP-2533: Update scheduled closing times too

* GAP-2533: Fix syntax

* GAP-2533: Hard code datetimes for BST
  • Loading branch information
dominicwest authored Apr 2, 2024
1 parent e4090ff commit 3aacd5d
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
UPDATE grant_advert
SET opening_date = opening_date - INTERVAL '1 hour'
WHERE opening_date > '2024-03-31 01:00:00'::TIMESTAMP
AND opening_date < '2024-10-27 02:00:00'::TIMESTAMP
AND created > '2023-09-28 12:00:00'::TIMESTAMP
AND status = 'SCHEDULED';

UPDATE grant_advert
SET closing_date = closing_date - INTERVAL '1 hour'
WHERE closing_date > '2024-03-31 01:00:00'::TIMESTAMP
AND closing_date < '2024-10-27 02:00:00'::TIMESTAMP
AND created > '2023-09-28 12:00:00'::TIMESTAMP
AND (status = 'PUBLISHED' OR status = 'SCHEDULED');

0 comments on commit 3aacd5d

Please sign in to comment.