mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 01:24:27 +02:00
preserve original timezone adjust selection when editing events
This commit is contained in:
parent
c379774300
commit
cee63c7a0d
2 changed files with 17 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue