/var/www/vhosts/ihelp.ro/httpdocs/vendor/monolog/monolog/src/Monolog
NameSizeModeActions
Attribute/-0755rm
Formatter/-0755rm
Handler/-0755rm
Processor/-0755rm
Test/-0755rm
DateTimeImmutable.php10570644editdlrm
ErrorHandler.php102250644editdlrm
Level.php54800644editdlrm
Logger.php227540644editdlrm
LogRecord.php33620644editdlrm
Registry.php40220644editdlrm
ResettableInterface.php9740644editdlrm
SignalHandler.php38940644editdlrm
Utils.php93900644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/monolog/monolog/src/Monolog/DateTimeImmutable.php (1057B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Monolog; use DateTimeZone; /** * Overrides default json encoding of date time objects * * @author Menno Holtkamp * @author Jordi Boggiano */ class DateTimeImmutable extends \DateTimeImmutable implements \JsonSerializable { private bool $useMicroseconds; public function __construct(bool $useMicroseconds, ?DateTimeZone $timezone = null) { $this->useMicroseconds = $useMicroseconds; parent::__construct('now', $timezone); } public function jsonSerialize(): string { if ($this->useMicroseconds) { return $this->format('Y-m-d\TH:i:s.uP'); } return $this->format('Y-m-d\TH:i:sP'); } public function __toString(): string { return $this->jsonSerialize(); } }