Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video 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 28th November 2020 22:05 Europe/London time based on the source file dated 10th November 2020 12:15 Europe/London time.