From 95032a39bbe3440233a7770cf8ed5c1e1e5b7f66 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', -- 2.39.5