Browse Source

story-content: Fixed comment fictional dates being affected by browser timezone.

master 1.4.0
Gisle Aune 6 years ago
parent
commit
3988028256
  1. 8
      marko/page/story-content/components/comment/index.marko

8
marko/page/story-content/components/comment/index.marko

@ -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">]&nbsp;</span>
</if>
<span class="decoration color-menu">&lt;</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>

Loading…
Cancel
Save