kopia lustrzana https://github.com/wagtail/wagtail
Fix banner date logic
Months in `new Date(y, m, d)` are 0-based, just to be awkwardpull/8313/head
rodzic
88b529d057
commit
9dfb9433bd
|
@ -25,7 +25,7 @@ $(() => {
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!hasCookie('wagtailSpaceNLClosed', 'true') &&
|
!hasCookie('wagtailSpaceNLClosed', 'true') &&
|
||||||
new Date() < new Date(2022, 6, 18)
|
new Date() < new Date(2022, 5, 18) // Month is 0-based, so subtract one from the real month number!
|
||||||
) {
|
) {
|
||||||
$('main').prepend($wagtailspace);
|
$('main').prepend($wagtailspace);
|
||||||
$wagtailspace.find('.wagtailspace-close').click(() => {
|
$wagtailspace.find('.wagtailspace-close').click(() => {
|
||||||
|
|
Ładowanie…
Reference in New Issue