]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Initialize DataTime with 'now' instead of 'today' (today doesn't give accurate results)
authorZach Copley <zach@status.net>
Tue, 23 Aug 2011 22:21:55 +0000 (22:21 +0000)
committerZach Copley <zach@status.net>
Tue, 23 Aug 2011 22:25:36 +0000 (22:25 +0000)
plugins/Event/eventform.php

index d7c554bf324df2476be4ddeb604f16f9f3ae68d2..86c8e8b7485a086aa7a2ef7dc1ba40986ab2353c 100644 (file)
@@ -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',