mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 03:13:42 -05:00
The code in the test that added the 'old' cookies uses Greenwich Mean Time (GMT) format: https://github.com/alphagov/notifications-admin/blob/master/tests/javascripts/support/helpers/cookies.js#L19 The code that cleared any 'old' cookies doesn't specify a time format so uses that set on the host OS: https://github.com/alphagov/notifications-admin/blob/master/app/assets/javascripts/cookieMessage.js#L12 https://github.com/alphagov/notifications-admin/blob/master/app/assets/javascripts/cookieMessage.js#L19 Cookies are deleted by setting the data to one that has expired. Because of the hour difference the date set to make the cookies expire didn't work. This fixes that by making the clearing up code use GMT.
3.8 KiB
3.8 KiB