mirror of
https://github.com/standardebooks/web.git
synced 2025-07-21 14:55:13 -04:00
Switch from DateTime to DateTimeImmutable across codebase
This commit is contained in:
parent
92c647f2b1
commit
e55fecaaa2
35 changed files with 102 additions and 99 deletions
|
@ -1,5 +1,5 @@
|
|||
<?
|
||||
use Safe\DateTime;
|
||||
use Safe\DateTimeImmutable;
|
||||
|
||||
$artwork = $artwork ?? null;
|
||||
|
||||
|
@ -10,7 +10,7 @@ if($artwork === null){
|
|||
|
||||
$isEditForm = $isEditForm ?? false;
|
||||
|
||||
$now = new DateTime('now', new DateTimeZone('America/Juneau')); // Latest continental US time zone
|
||||
$now = new DateTimeImmutable('now', new DateTimeZone('America/Juneau')); // Latest continental US time zone
|
||||
?>
|
||||
<fieldset>
|
||||
<legend>Artist details</legend>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue