fix: refine frontend admin and auth UI

This commit is contained in:
fawney19
2026-05-18 12:41:57 +08:00
parent 92813e6122
commit e4315fbbf0
12 changed files with 321 additions and 286 deletions

View File

@@ -25,11 +25,11 @@ describe('parseDateLike', () => {
describe('datetime-local conversion', () => {
it('formats RFC3339 instants for datetime-local inputs using local clock fields', () => {
const date = new Date('2026-04-12T15:30:00Z')
const expected = [
const expected = `${[
date.getFullYear(),
padDatePart(date.getMonth() + 1),
padDatePart(date.getDate()),
].join('-') + `T${padDatePart(date.getHours())}:${padDatePart(date.getMinutes())}`
].join('-') }T${padDatePart(date.getHours())}:${padDatePart(date.getMinutes())}`
expect(formatDateTimeLocalInput('2026-04-12T15:30:00Z')).toBe(expected)
})