mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-06-07 22:09:57 +00:00
Ensure dashboard time buckets sort correctly across year boundaries by including the year in `timestamp2string1()` output. Previously, labels like `MM-DD` / `MM-DD HH:00` could be string-sorted into the wrong order (e.g. `01-01` before `12-31`), making it look like the new year’s data was missing or the timeline was “reversed”. Changes: - Update `timestamp2string1()` to emit sortable keys: - hour: `YYYY-MM-DD HH:00` - day: `YYYY-MM-DD` - week: `YYYY-MM-DD - YYYY-MM-DD` (both ends include year)