Extract strict standard time from unixtime

<?php
declare(strict_types=1);
error_reporting(-1);
ini_set('display_errors', '1');

$dateTime=date("Y - m - d  H : i . s", time() );
echo $dateTime;

The code above produces the result below.

How can I remove the Waning above?
and produces the result below.

Warning says it all:

Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.