mattimaier / bnote

BNote - Open Source Ensemble Management
http://www.bnote.info
GNU General Public License v3.0
23 stars 16 forks source link

Probe doesn't sort by chronological date #501

Open encodeuramateur opened 2 years ago

encodeuramateur commented 2 years ago

Guten Tag,

The function who permit to sort rehearsal by chronological date doesn't work.

In file probenview.php / private function writeRehearsalList($data) I have attempt to split field "when" in two field. One with date. Another one with begin and end hour.

However that's doesn't fix the issue. Sort by year give incoherency result too.

probe .

Thank you,

mattimaier commented 2 years ago

The issue is that the table component that is used does not support to sort by a technical key, e.g. 2022-10-31 18:00, but instead it sorts by the display value which is in German notation not very helpful... Any ideas how to solve that are welcome.

encodeuramateur commented 2 years ago

Hallo,

Understand that an format issue between javascript date fomat an php one. I found this article https://stackoverflow.com/questions/30186611/php-dateformat-to-moment-js-format.

That give some ideas.