mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -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;
|
||||
use function Safe\fopen;
|
||||
use function Safe\fwrite;
|
||||
use function Safe\fclose;
|
||||
|
@ -33,7 +33,7 @@ class Log{
|
|||
return;
|
||||
}
|
||||
|
||||
$now = new DateTime('now', new DateTimeZone('UTC'));
|
||||
$now = new DateTimeImmutable();
|
||||
|
||||
fwrite($fp, $now->format('Y-m-d H:i:s') . "\t" . $this->RequestId . "\t" . $text . "\n");
|
||||
fclose($fp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue