We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit baa17381 authored by Zach Copley's avatar Zach Copley

Change time format to work with older PHP (before 5.3)

parent 467b840c
......@@ -124,7 +124,7 @@ class EventForm extends Form
$times = EventTimeList::getTimes($today->format('m/d/Y 12:00') . ' am ' . $today->format('T'));
$start = EventTimeList::nearestHalfHour('@' . $today->getTimestamp());
$start = EventTimeList::nearestHalfHour($today->format('c'));
$start->setTimezone(new DateTimeZone(common_timezone()));
......@@ -160,7 +160,7 @@ class EventForm extends Form
// TRANS: Field label on event form.
_m('LABEL','End time'),
EventTimeList::getTimes('@' . $start->getTimestamp(), true),
EventTimeList::getTimes($start->format('c'), true),
// TRANS: Field title on event form.
_m('Time the event ends.'),
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