feat: Admin Area General Settings and Categories 1.08

This commit is contained in:
OpenVelo Agent
2026-07-22 15:10:59 +00:00
parent a8a81b0429
commit 1df01efd43
4 changed files with 51 additions and 259 deletions
+15
View File
@@ -90,6 +90,21 @@ describe('datetime helpers', () => {
it('toIsoUtc returns input verbatim when empty', () => {
expect(toIsoUtc('')).toBe('');
});
it('toIsoUtc interprets datetime-local components as UTC regardless of browser timezone', () => {
expect(toIsoUtc('2027-03-15T08:30')).toBe('2027-03-15T08:30:00.000Z');
expect(toIsoUtc('2027-03-17T16:45')).toBe('2027-03-17T16:45:00.000Z');
});
it('toIsoUtc preserves seconds and milliseconds when present', () => {
expect(toIsoUtc('2027-03-15T08:30:15')).toBe('2027-03-15T08:30:15.000Z');
expect(toIsoUtc('2027-03-15T08:30:15.123')).toBe('2027-03-15T08:30:15.123Z');
});
it('toIsoUtc round-trips with toDatetimeLocal in UTC', () => {
expect(toIsoUtc(toDatetimeLocal('2027-03-15T08:30:00.000Z'))).toBe('2027-03-15T08:30:00.000Z');
expect(toIsoUtc(toDatetimeLocal('2027-03-17T16:45:00.000Z'))).toBe('2027-03-17T16:45:00.000Z');
});
});
describe('pageTitleError', () => {