Setting up the GMT time zone

It is important to set the default time zone for date/time management.

Usually, when we refer to date/time, do not pay attention to which time zone value is being referred to.

For example, if we live in Rome and want to spend our next holiday in New York, when we receive the check-in date/time from the hotel, we must consider which time zone time is being referred to (whether local or remote).

When we display a date/time value that could be misunderstood, it is always recommended to add a time zone reference to it. The time zone is expressed through positive or negative hours compared to a reference that is usually GMT (Greenwich Mean Time).

For example, if it is 9 p.m. in Rome (GMT +1), in GMT time it will be 8 p.m. (GMT ...

Get Yii2 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.