Updated the date to April 16th instead of April 9

This commit is contained in:
Jonathan Bobel
2024-03-12 13:27:37 -04:00
parent 46ef759a92
commit 0ae369d54b
3 changed files with 6 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
(function (window) {
// Set the target date (10 days before March 15th, 2024)
const targetDate = new Date("April 9, 2024 00:00:00").getTime();
const targetDate = new Date("April 16, 2024 00:00:00").getTime();
// Function to update the countdown display
function updateCountdown() {

View File

@@ -15,7 +15,7 @@
<div class="grid-row">
<div id="countdown-container" class="usa-alert usa-alert--warning width-full margin-bottom-4">
<div class="usa-alert__body">
<h4 class="usa-alert__heading">Login.gov is required by April 9, 2024</h4>
<h4 class="usa-alert__heading">Login.gov is required by April 16, 2024</h4>
<p class="usa-alert__text">
You have <span id="countdown"></span> left to use Login.gov to sign in
</p>
@@ -51,7 +51,7 @@
{% endcall %}
</div>
<div class="tablet:grid-col-6 tablet:grid-offset-1 margin-top-2 padding-y-2 padding-x-4 bg-base-lightest">
<h2 class="font-body-lg">Notify.gov is changing the sign-in experience to Login.gov effective<br>April 9, 2024</h2>
<h2 class="font-body-lg">Notify.gov is changing the sign-in experience to Login.gov effective<br>April 16, 2024</h2>
<p>Why are we doing this?</p>
<ul class="usa-list">
<li><strong>Enhanced security:</strong> Login.gov is really secure and trustworthy</li>
@@ -61,7 +61,7 @@
<p>What do I need to do?</p>
<ul class="usa-list">
<li>If you have a Login.gov account, start using it to sign in to Notify today.</li>
<li>If you dont have a Login.gov account, you must create one by April 9, 2024 to continue to access Notify.</li>
<li>If you dont have a Login.gov account, you must create one by April 16, 2024 to continue to access Notify.</li>
</ul>
<div class="border-bottom border-base-lighter margin-y-4"></div>
<a class="usa-link usa-button margin-bottom-3" href="{{ create_login_account_url }}">Create Login.gov account</a>

View File

@@ -4,7 +4,7 @@ beforeAll(() => {
document.body.innerHTML = `
<div id="countdown-container" class="usa-alert usa-alert--warning width-full margin-bottom-4">
<div class="usa-alert__body">
<h4 class="usa-alert__heading">Login.gov is required by April 9, 2024</h4>
<h4 class="usa-alert__heading">Login.gov is required by April 16, 2024</h4>
<p class="usa-alert__text">
You have <span id="countdown"></span> left to use Login.gov to sign in
</p>
@@ -17,7 +17,7 @@ beforeAll(() => {
});
jest.useFakeTimers();
const targetDate = new Date("April 9, 2024 00:00:00"); // Reference point
const targetDate = new Date("April 16, 2024 00:00:00"); // Reference point
test('Hides the countdown if more than 10 days away', () => {
jest.setSystemTime(targetDate.getTime() - 12 * 24 * 60 * 60 * 1000); // 12 days before