From cee63c7a0d5362e255551d0a8c3dfa667322f8b1 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 14 Jun 2011 21:44:27 -0700 Subject: preserve original timezone adjust selection when editing events --- include/event.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/event.php b/include/event.php index f37cdc6d5..9d4a8df59 100644 --- a/include/event.php +++ b/include/event.php @@ -175,6 +175,9 @@ function ev_compare($a,$b) { $date_a = (($a['adjust']) ? datetime_convert('UTC',date_default_timezone_get(),$a['start']) : $a['start']); $date_b = (($b['adjust']) ? datetime_convert('UTC',date_default_timezone_get(),$b['start']) : $b['start']); + + if($date_a === $date_b) + return strcasecmp($a['desc'],$b['desc']); return strcmp($date_a,$date_b); } -- cgit v1.2.3