mediawiki-extensions-Discus.../tests/cases/timestamp-format-switch/timestamp-format-switch.json
Bartosz Dziewoński 109a50cb34 Truncate timestamps in comment IDs / names
For comments posted on or after 2022-07-12 (configurable), use a
shorter format, identical to the timestamps MediaWiki uses in URLs.

Changing the format for already existing comments would involve
difficult migrations, therefore we elect not to do it.

Bug: T304595
Change-Id: I387051a6a3a1d84cfae45c3e1516db870cc8b977
2022-06-24 00:49:58 +02:00

73 lines
1.3 KiB
JSON

[
{
"placeholderHeading": false,
"type": "heading",
"range": [
"1/0/0",
"1/0/1"
],
"headingLevel": 2,
"level": 0,
"name": "h-Matma_Rex-2022-07-10T00:00:00.000Z",
"id": "h-Test_past-2022-07-10T00:00:00.000Z",
"warnings": [],
"replies": [
{
"type": "comment",
"timestamp": "2022-07-10T00:00:00.000Z",
"author": "Matma Rex",
"range": [
"3/0",
"3/4/27"
],
"signatureRanges": [
[
"3/1",
"3/4/27"
]
],
"level": 1,
"name": "c-Matma_Rex-2022-07-10T00:00:00.000Z",
"id": "c-Matma_Rex-2022-07-10T00:00:00.000Z-Test_past",
"warnings": [],
"replies": []
}
]
},
{
"placeholderHeading": false,
"type": "heading",
"range": [
"5/0/0",
"5/0/1"
],
"headingLevel": 2,
"level": 0,
"name": "h-Matma_Rex-20220715000000",
"id": "h-Test_future-20220715000000",
"warnings": [],
"replies": [
{
"type": "comment",
"timestamp": "20220715000000",
"author": "Matma Rex",
"range": [
"7/0",
"7/4/27"
],
"signatureRanges": [
[
"7/1",
"7/4/27"
]
],
"level": 1,
"name": "c-Matma_Rex-20220715000000",
"id": "c-Matma_Rex-20220715000000-Test_future",
"warnings": [],
"replies": []
}
]
}
]