D
D
des1roer2017-11-20 11:57:41
Iron
des1roer, 2017-11-20 11:57:41

php convert time to utc +0?

I get the time let it be 2017-11-23 11:30:50 this is utc +5
how do I get 2017-11-23 06:30:50 utc +0 ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Donate684, 2019-08-30
@Demigodd

You know where to download R-Studio. I usually use this software, if it does not find anything, then the sadness of the bid =(

D
des1roer, 2017-11-20
@des1roer

$date = \DateTime::createFromFormat('Ymd H:i:s', $this->published_at, new \DateTimeZone(\Yii::$app->timeZone));
$date->setTimezone(new \DateTimeZone('GMT'));
$this->published_at = $date->format('Ymd H:i:s');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question