1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

fix: improves search by backfilling on first search (#3261)

This commit is contained in:
Amir Raminfar
2024-09-07 15:11:09 -07:00
committed by GitHub
parent 328a277cff
commit a5ffd88884
7 changed files with 230 additions and 102 deletions

17
internal/utils/time.go Normal file
View File

@@ -0,0 +1,17 @@
package utils
import "time"
func Min(a, b time.Time) time.Time {
if a.Before(b) {
return a
}
return b
}
func Max(a, b time.Time) time.Time {
if a.After(b) {
return a
}
return b
}