Adding time of expiry.

This commit is contained in:
Sergiotarxz 2024-05-10 11:09:43 +02:00
parent ba6f7b418e
commit 5e9f68ad6d
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,8 @@ use strict;
use warnings;
use utf8;
use DateTime;
use feature 'signatures';
use Moo;
@ -33,6 +35,9 @@ sub default_alternative($self) {
}
sub is_active ($self) {
if (DateTime->new(year => 2024, month => 6, day => 11) < DateTime->now()) {
return 0;
}
return 1;
}