mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 07:10:29 -04:00
Use the NOW
constant from eec7971
This commit is contained in:
parent
df8eac6f82
commit
65d1dcdd88
6 changed files with 6 additions and 21 deletions
|
@ -8,8 +8,6 @@ class InvalidGitCommitCreatedDatetimeException extends AppException{
|
|||
protected $message = 'Invalid GitCommit Created datetime.';
|
||||
|
||||
public function __construct(DateTimeImmutable $createdDatetime){
|
||||
/** @throws void */
|
||||
$now = new DateTimeImmutable();
|
||||
$this->message = 'Invalid GitCommit Created datetime. ' . $createdDatetime->format('Y-m-d') . ' is after ' . $now->format('Y-m-d') . '.';
|
||||
$this->message = 'Invalid GitCommit Created datetime. ' . $createdDatetime->format('Y-m-d') . ' is after ' . NOW->format('Y-m-d') . '.';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue