Changeset ed5e7ab in Klonkt for test/archive-export.test.js
- Timestamp:
- 08/07/2026 05:41:20 PM (5 weeks ago)
- Branches:
- main
- Children:
- c25eff7
- Parents:
- ba76bf5 (diff), a4fea5e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
test/archive-export.test.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
test/archive-export.test.js
rba76bf5 red5e7ab 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)