story-content: Fixed comment fictional dates being affected by browser timezone.
the build was successful
the build was successful
This commit is contained in:
@@ -47,7 +47,9 @@ import moment from "moment"
|
||||
</tr>
|
||||
<tr if(input.comment.fictionalDate != null)>
|
||||
<th>Date:</th>
|
||||
<td>${moment(input.comment.fictionalDate).format("MMM D, YYYY")}</td>
|
||||
<td>
|
||||
<date utc value=input.comment.fictionalDate></date>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -69,7 +71,7 @@ import moment from "moment"
|
||||
<markdown class="body" source=paragraph>
|
||||
<if (input.comment.fictionalDate)>
|
||||
<span class="decoration color-menu">[</span>
|
||||
<date class="color-menu" value=input.comment.fictionalDate></date>
|
||||
<date utc class="color-menu" value=input.comment.fictionalDate></date>
|
||||
<span class="decoration color-menu">] </span>
|
||||
</if>
|
||||
<span class="decoration color-menu"><</span>
|
||||
@@ -108,7 +110,7 @@ import moment from "moment"
|
||||
</div>
|
||||
<chapter-meta kind="title" value=input.comment.subject />
|
||||
<chapter-meta kind="name" value=input.comment.characterName character=(input.comment.character) ukAuthor=input.comment.author />
|
||||
<chapter-meta kind="date" value=input.comment.fictionalDate />
|
||||
<chapter-meta utc kind="date" value=input.comment.fictionalDate />
|
||||
<chapter-meta weak kind="date" value=input.comment.createdDate />
|
||||
<chapter-meta weak kind="author" value=input.comment.author />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user