diff options
author | Friendika <info@friendika.com> | 2011-06-14 21:44:27 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-14 21:44:27 -0700 |
commit | cee63c7a0d5362e255551d0a8c3dfa667322f8b1 (patch) | |
tree | 02eb18440555ea1b06e4b8274417392d769bc428 /include/event.php | |
parent | c3797743006bce467ad3595a7847755a3f678347 (diff) | |
download | volse-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.php | 3 |
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); } |