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 June 2025 20:05 Europe/London time based on the source file dated 11th June 2025 15:00 Europe/London time.