Adding time of expiry.
This commit is contained in:
parent
ba6f7b418e
commit
5e9f68ad6d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue