aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/plain.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl/plain.tpl')
-rw-r--r--view/tpl/plain.tpl3
1 files changed, 1 insertions, 2 deletions
diff --git a/view/tpl/plain.tpl b/view/tpl/plain.tpl
index b01ee9baa..b0c7b3081 100644
--- a/view/tpl/plain.tpl
+++ b/view/tpl/plain.tpl
@@ -3,8 +3,7 @@
<div style="font-weight: normal; font-family: monospace;">{{$infos}}</div>
<script>
$('.register_date').each( function () {
- var UTC = $(this).html();
- var date = new Date(UTC);
+ var date = new Date($(this).data('utc'));
$(this).html(date.toLocaleString());
});
</script>