Commit 2b4ea542 authored by droces's avatar droces

Fix of timezone in Stats page

parent 731c3af0
......@@ -109,9 +109,10 @@ class Event {
// Parses a string into a DateTime object, optionally forced into the given timezone.
function parseDateTime($string, $timezone=null) {
$timezone = $timezone ? $timezone : new DateTimeZone('UTC');
$date = new DateTime(
$string,
$timezone ? $timezone : new DateTimeZone('UTC')
$timezone
// Used only when the string is ambiguous.
// Ignored if string has a timezone offset in it.
);
......
......@@ -821,7 +821,7 @@ display:
empty: true
tokenize: false
content:
value: 'No bookings found.'
value: 'No promos found.'
format: full_html
plugin_id: text
relationships:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment