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=95032a39bbe3440233a7770cf8ed5c1e1e5b7f66;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',