Details
-
Bug
-
Resolution: Unresolved
-
Low
-
Minor
-
Description
Issue Summary
When using the REST API /wiki/rest/api/contentbody/convert/view documented in
with the payload of storage format of
<time datetime="2023-07-31" />
it will generate the different HTML to what is seen normally.
As a result, any Dynamic Macros in Connect that use this endpoint do not display Date macros the same way as a regular page.
Australian/UK Date Format
German Format
US Format
Note, that in edit mode Date macro appears correct
It works for Status macro and @ mentions.
Steps to Reproduce
- Call the convert REST API with a payload of a Date macro storage format
$ curl --silent \ --user <email>:<token> \ --request POST \ --url 'https://mycompany.atlassian.net/wiki/rest/api/contentbody/convert/view' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data-raw '{"value":"<time datetime=\"2023-07-31\" />", "representation": "storage" }'
Expected Results
The HTML value output should be (For Australia/UK format)
<span class="date-lozenger-container"> <span class="date-node" data-node-type="date" data-timestamp="1690761600000">31 Jul 2023</span> </span>
Actual Results
The HTML value output is
<time datetime="2023-07-31" class="date-upcoming">31 Jul 2023</time>
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
Attachments
Issue Links
- mentioned in
-
Page Loading...