Skip to content
Merged
Changes from 4 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
7eef086
Added `/core/date-time`
sanderke Jul 24, 2025
8b98d6f
markdownlint
sanderke Jul 24, 2025
c982b06
Apply suggestions from code review
sanderke Aug 13, 2025
00ae440
Update sections/designRules.md
sanderke Aug 22, 2025
00d20c4
Verwerk feedback op basis van werksessie
TimvdLippe Oct 23, 2025
375c4d9
Vul tekst in bij TODOs
TimvdLippe Oct 23, 2025
b61be80
Update de bewoording
TimvdLippe Oct 23, 2025
89fc8bc
Zet het voorbeeld voor de regels
TimvdLippe Oct 23, 2025
daaefa1
Update bewoording
TimvdLippe Oct 23, 2025
aca3229
Update bewoording
TimvdLippe Oct 23, 2025
b983c0e
Update zin met time portion
TimvdLippe Oct 29, 2025
17737cf
Voeg noot toe over opslaan van originele timezone
TimvdLippe Oct 30, 2025
a186fe3
Update designRules.md
TimvdLippe Oct 30, 2025
8afad81
Voeg linter regels toe voor datum en tijd
TimvdLippe Nov 17, 2025
54ddb4b
Storage recommendations (#298)
joostfarla Feb 5, 2026
a65a556
Merge branch 'develop' into date-time
TimvdLippe Feb 5, 2026
567912b
Remove example formats for ISO8601
TimvdLippe Feb 5, 2026
6752647
Gebruik meest recente versie van ISO8601
TimvdLippe Feb 5, 2026
66a0af8
Response in UTC als SHOULD
TimvdLippe Feb 10, 2026
e92479b
Leg het verschil uit tussen RFC9557 en ISO8601
TimvdLippe Feb 16, 2026
b90bd82
Fix MUST notatie
TimvdLippe Feb 16, 2026
4df780b
Fix ISO8601 formaat voor time
TimvdLippe Feb 17, 2026
1666efb
Fix typo
TimvdLippe Feb 17, 2026
bd12a4e
Maak tekst over timezone offset uitgebreider
TimvdLippe Feb 26, 2026
26ef694
Merge branch 'develop' into date-time
TimvdLippe Mar 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions sections/designRules.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,22 @@ A resource that corresponds to a single conceptual entity is referred to as a [=
</dl>
</div>

<div class="rule" id="/core/date-time" data-type="technical">
<p class="rulelab">Use ISO 8601 for date and time formats</p>
<dl>
<dt>Statement</dt>
<dd>
<p>All date and time fields in requests and responses MUST follow [[RFC9557]] and thus be in [[ISO8601]] format (e.g., <code>YYYY-MM-DD</code> for dates, <code>YYYY-MM-DDTHH:mm:ssZ</code> for timestamps). Fields in responses containing timestamps MUST be in UTC (e.g. <code>Z</code> as offset). APIs MUST accept fields with timestamps with any time offset in requests and servers SHOULD normalize to (and store in) UTC.</p>
Comment thread
TimvdLippe marked this conversation as resolved.
Resolved
<p>If the time portion is not relevant, only the date portion (e.g., <code>YYYY-MM-DD</code>) SHOULD be accepted, stored, and returned.</p>
</dd>
<dt>Rationale</dt>
<dd>
<p>Implementing ISO 8601 in UTC removes ambiguity in date handling between systems and timezones.</p>
<p>Inserting a default or irrelevant time can lead to interpretation errors in international contexts. A publish date of <code>2025-07-24T00:00:00Z</code> could for instance be rendered as July 23 in Ireland. A default time of 23:59 would in turn cause date confusion east of Greenwich.</p>
</dd>
</dl>
</div>

## HTTP methods

Although the REST architectural style does not impose a specific protocol, REST APIs are typically implemented using HTTP [[rfc9110]].
Expand Down