From: Zach Copley Date: Tue, 23 Aug 2011 22:21:55 +0000 (+0000) Subject: Initialize DataTime with 'now' instead of 'today' (today doesn't give accurate results) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8e2a9bfa5ba5914a734f60da00b3575ef24e5c2c;p=quix0rs-gnu-social.git Initialize DataTime with 'now' instead of 'today' (today doesn't give accurate results) --- diff --git a/plugins/Event/eventform.php b/plugins/Event/eventform.php index d7c554bf32..86c8e8b748 100644 --- a/plugins/Event/eventform.php +++ b/plugins/Event/eventform.php @@ -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',