Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Timezone offset not supported on older PHP versions #26

Open
XedinUnknown opened this issue Aug 15, 2018 · 0 comments
Open

Timezone offset not supported on older PHP versions #26

XedinUnknown opened this issue Aug 15, 2018 · 0 comments

Comments

@XedinUnknown
Copy link
Contributor

On versions of PHP prior to 5.5.10, selecting an offset e.g. UTC +5 as the Client Timezone, Fallback Timezone, or WordPress Timezone will result in an exception with the message such as the following, where %1$s is the string representation of the timezone.

'Invalid timezone name: "%1$s"

Cause

On versions of PHP prior to 5.5.10, DateTimeZone::__construct() does not accept offset as argument, but requires specifically the timezone name, such as Europe/London.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant