Remove checks against EBOOK_EARLIEST_CREATION_DATE

This commit is contained in:
Mike Colagrosso 2024-10-22 17:16:28 -06:00 committed by Alex Cabal
parent 432723eafe
commit 6bec232d37
6 changed files with 6 additions and 7 deletions

View file

@ -1207,7 +1207,7 @@ class Ebook{
}
if(isset($this->EbookCreated)){
if($this->EbookCreated > $now || $this->EbookCreated < EBOOK_EARLIEST_CREATION_DATE){
if($this->EbookCreated > $now){
$error->Add(new Exceptions\InvalidEbookCreatedDatetimeException($this->EbookCreated));
}
}
@ -1216,7 +1216,7 @@ class Ebook{
}
if(isset($this->EbookUpdated)){
if($this->EbookUpdated > $now || $this->EbookUpdated < EBOOK_EARLIEST_CREATION_DATE){
if($this->EbookUpdated > $now){
$error->Add(new Exceptions\InvalidEbookUpdatedDatetimeException($this->EbookUpdated));
}