mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-03 01:40:21 +08:00
fix: refine frontend admin and auth UI
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user