Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

offset_user_local_timezone()

Description

Offset a datetime to user local time zone

IMPORTANT: the offset is fixed, there is no calculation for summertime!

Parameters

ColumnTypeDefaultDescription
$datetime string A date/time string. @see https://www.php.net/manual/en/datetime.formats.php
$format string The format of the outputted date string. @see https://www.php.net/manual/en/function.date.php

Return

string The date in the specified format

This article was last updated 14th July 2020 00:35 Europe/London time based on the source file dated 8th July 2020 11:40 Europe/London time.