Changes in test/archive-export.test.js [6248497:712b161] in Klonkt
- File:
-
- 1 edited
-
test/archive-export.test.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
test/archive-export.test.js
r6248497 r712b161 175 175 }); 176 176 177 test('een SQL-tijdstempel wordt als UTC gelezen, niet als lokale tijd', () => {178 // SQLite schrijft CURRENT_TIMESTAMP in UTC zonder zone erbij. Date.parse leest179 // die vorm als LOKALE tijd, en dan schuift elk tijdstempel in het archief mee180 // met de machine die de export draait -- in Amsterdam twee uur.181 //182 // Deze test is alleen zinvol onder een NIET-UTC tijdzone; draai hem daarom ook183 // eens als: TZ=Europe/Amsterdam node --test test/archive-export.test.js184 post('tijdstip', { published_at: '2026-07-01 12:56:10', created_at: '2026-07-01 12:56:10' });185 const o = lees(AX.buildArchive('me'), 'posts/tijdstip.json');186 assert.equal(o.published, '2026-07-01T12:56:10.000Z',187 'het moment uit de database is UTC en hoort dat te blijven');188 });189 190 177 test('een concept gaat gewoon mee', () => { 191 178 post('concept', { status: 'draft', published_at: null });
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)