mirror of
https://github.com/standardebooks/web.git
synced 2025-07-20 22:33:57 -04:00
Use a NOW constant instead of new DateTimeImmutable objects, and tweak how some donation drive dates work
This commit is contained in:
parent
376dacd833
commit
eec79712fc
27 changed files with 108 additions and 143 deletions
|
@ -39,8 +39,7 @@ class AtomFeed extends Feed{
|
|||
// Did we actually update the feed? If so, write to file and update the index
|
||||
if($this->HasChanged($this->Path)){
|
||||
// Files don't match, save the file
|
||||
/** @throws void */
|
||||
$this->Updated = new DateTimeImmutable();
|
||||
$this->Updated = NOW;
|
||||
$this->Save();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue