Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 19th March 2024 10:05 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.