aboutsummaryrefslogtreecommitdiffstats
path: root/include/event.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-14 21:44:27 -0700
committerFriendika <info@friendika.com>2011-06-14 21:44:27 -0700
commitcee63c7a0d5362e255551d0a8c3dfa667322f8b1 (patch)
tree02eb18440555ea1b06e4b8274417392d769bc428 /include/event.php
parentc3797743006bce467ad3595a7847755a3f678347 (diff)
downloadvolse-hubzilla-cee63c7a0d5362e255551d0a8c3dfa667322f8b1.tar.gz
volse-hubzilla-cee63c7a0d5362e255551d0a8c3dfa667322f8b1.tar.bz2
volse-hubzilla-cee63c7a0d5362e255551d0a8c3dfa667322f8b1.zip
preserve original timezone adjust selection when editing events
Diffstat (limited to 'include/event.php')
-rw-r--r--include/event.php3
1 files changed, 3 insertions, 0 deletions
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);
}