Initialize DataTime with 'now' instead of 'today' (today doesn't give accurate results)
This commit is contained in:
parent
11f2078893
commit
95032a39bb
@ -109,7 +109,7 @@ class EventForm extends Form
|
|||||||
|
|
||||||
$this->li();
|
$this->li();
|
||||||
|
|
||||||
$today = new DateTime('today');
|
$today = new DateTime('now');
|
||||||
$today->setTimezone(new DateTimeZone(common_timezone()));
|
$today->setTimezone(new DateTimeZone(common_timezone()));
|
||||||
|
|
||||||
$this->out->input('event-startdate',
|
$this->out->input('event-startdate',
|
||||||
|
Loading…
Reference in New Issue
Block a user