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/8192/head
rodzic
ad64ac3e91
commit
7f46688741
|
@ -28,7 +28,7 @@ $(() => {
|
|||
|
||||
if (
|
||||
!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);
|
||||
$wagtailspace.find('.wagtailspace-close').click(() => {
|
||||
|
|
Ładowanie…
Reference in New Issue