Changes in test/archive-export.test.js [712b161:6248497] in Klonkt
- File:
-
- 1 edited
-
test/archive-export.test.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
test/archive-export.test.js
r712b161 r6248497 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 leest 179 // die vorm als LOKALE tijd, en dan schuift elk tijdstempel in het archief mee 180 // 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 ook 183 // eens als: TZ=Europe/Amsterdam node --test test/archive-export.test.js 184 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 177 190 test('een concept gaat gewoon mee', () => { 178 191 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)