Commit d80d9dcd by Erik_r

remove comment lines in asRelativeTime

parent 4dbf1fe7
......@@ -1682,14 +1682,14 @@ class Formatter extends yii\base\Component
$timezone = new \DateTimeZone($this->timeZone);
if ($referenceTime === null) {
// $dateNow = new DateTime('now', $timezone);
$dateNow = new DateTime('now', $timezone);
} else {
$referenceTime = $this->normalizeDatetimeValue($referenceTime);
// $dateNow = new DateTime(null, $timezone);
$dateNow = new DateTime(null, $timezone);
$dateNow->setTimestamp($referenceTime);
}
// $dateThen = new DateTime(null, $timezone);
$dateThen = new DateTime(null, $timezone);
$dateThen->setTimestamp($timestamp);
$interval = $dateThen->diff($dateNow);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment