Is there any difference between Europe / London and UTC in PHP?

I know that UTC and GMT are the same.

BST (British Standard Time) - GMT + - 1 hour depending on DST (summer time).

With this in mind, how is Europe / London interpreted in PHP? Is it mostly UTC / GMT?

+4
source share
1 answer

How is Europe / London interpreted in PHP? Is it mostly UTC / GMT?

They do not match (UTC / GMT has no daylight). At the time of this writing, they are divided by an hour:

$utc = new DateTime('now', new DateTimeZone('UTC')); echo $utc->format('Ymd H:i:s'); // output: 2013-06-03 15:37:08 $el = new DateTime('now', new DateTimeZone('Europe/London')); echo $el->format('Ymd H:i:s'); // output: 2013-06-03 16:37:08 
+14
source

Source: https://habr.com/ru/post/1484229/


All Articles