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