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 25th April 2024 21:35 Europe/London time based on the source file dated 17th April 2024 16:25 Europe/London time.