HistoryDatabase.vue formatDate() derived the day from UTC (new Date(dateStr).toISOString().slice(0, 10)) while the sibling formatTime() uses local hours/minutes. The backend sends naive-local timestamps (datetime.now().isoformat()), so for any non-UTC client the two disagree by up to a day -- e.g. for the project's UTC+8 audience a record created 00:00-08:00 local shows the previous day's date next to the current time. Derive the date from local components so it matches the time shown. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .gitignore | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| vite.config.js | ||