From 8e2a9bfa5ba5914a734f60da00b3575ef24e5c2c Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Tue, 23 Aug 2011 22:21:55 +0000 Subject: [PATCH] Initialize DataTime with 'now' instead of 'today' (today doesn't give accurate results) --- plugins/Event/eventform.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',