Skip to content

Commit 7bd560b

Browse files
committed
Update downtime banner for cookie migration downtime
1 parent 5767e38 commit 7bd560b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/app/components/navigation/DowntimeWarningBanner.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,20 @@ export const DowntimeWarningBanner = () => {
1919

2020
function clickDismiss() {
2121
setCookie(false);
22-
Cookies.set(DOWNTIME_COOKIE, "1", {expires: 30 /* days*/});
22+
Cookies.set(DOWNTIME_COOKIE, "1", {expires: 14 /* days*/});
2323
}
2424

25-
const inDateRange = new Date(1617177600000) <= new Date() && new Date() <= new Date(1617436800000);
25+
const inDateRange = new Date(1626854400000) <= new Date() && new Date() <= new Date(1627056000000);
2626

2727
return inDateRange && noCookie ? <div className="banner d-print-none" id="downtime-banner">
2828
<Alert color="danger" className="mb-0">
2929
<RS.Container>
3030
<RS.Row style={{alignItems: "center"}}>
3131
<RS.Col xs={12} md={9}>
32-
<span>Please note Isaac {SITE_SUBJECT_TITLE} will be unavailable for several hours on 3<sup>rd</sup> April for planned maintenance.
33-
<a href={twitterLink} target="_blank" rel="noopener noreferrer">Check our Twitter feed</a> for updates on the day.
32+
<span>Please note Isaac {SITE_SUBJECT_TITLE} will be unavailable for an hour at 5pm BST on Friday 23<sup>rd</sup> July
33+
for essential maintenance. You will need to log in again once the maintenance is complete.
34+
<br />
35+
<a href={twitterLink} target="_blank" rel="noopener noreferrer">Check our Twitter feed</a> for any updates on the day.
3436
</span>
3537
</RS.Col>
3638
<RS.Col xs={12} md={3} className="text-center">

0 commit comments

Comments
 (0)