Add TODO for a bug where sorting entries by timestamps in different timezones causes issues

This commit is contained in:
David Dworken 2023-09-07 18:09:30 -07:00
parent aa3c7fc41a
commit c73b10011b
No known key found for this signature in database

View File

@ -892,6 +892,7 @@ func Search(ctx context.Context, db *gorm.DB, query string, limit int) ([]*data.
if err != nil {
return nil, err
}
// TODO: This ordering isn't sufficient if some computers are in different timezones. Add better sorting here.
if hctx.GetConf(ctx).BetaMode {
tx = tx.Order("start_time DESC")
} else {