mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 20:07:52 +02:00
Add TODO for a bug where sorting entries by timestamps in different timezones causes issues
This commit is contained in:
parent
aa3c7fc41a
commit
c73b10011b
@ -892,6 +892,7 @@ func Search(ctx context.Context, db *gorm.DB, query string, limit int) ([]*data.
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
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 {
|
if hctx.GetConf(ctx).BetaMode {
|
||||||
tx = tx.Order("start_time DESC")
|
tx = tx.Order("start_time DESC")
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user