diff options
author | Mario <mario@mariovavti.com> | 2021-03-17 17:49:13 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-03-17 17:49:13 +0100 |
commit | 9f26b7aa9c6e3ba50de5a0780c917cabad7367f6 (patch) | |
tree | bcc78e49cf73db9e6af6f5a11367be47b1f9f2e8 /view | |
parent | febf766be0ecd2a50aa8842a90a23dc23763e373 (diff) | |
download | volse-hubzilla-9f26b7aa9c6e3ba50de5a0780c917cabad7367f6.tar.gz volse-hubzilla-9f26b7aa9c6e3ba50de5a0780c917cabad7367f6.tar.bz2 volse-hubzilla-9f26b7aa9c6e3ba50de5a0780c917cabad7367f6.zip |
air: convert utc to local in browser (we do not have a client timezone othervise at this point) - issue #1544
Diffstat (limited to 'view')
-rw-r--r-- | view/tpl/plain.tpl | 7 | ||||
-rw-r--r-- | view/tpl/regate.tpl | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/view/tpl/plain.tpl b/view/tpl/plain.tpl index 9af76718e..b01ee9baa 100644 --- a/view/tpl/plain.tpl +++ b/view/tpl/plain.tpl @@ -1,3 +1,10 @@ <h2>{{$title}}</h2> {{if $now}}<div>{{$now}}</div>{{/if}} <div style="font-weight: normal; font-family: monospace;">{{$infos}}</div> +<script> + $('.register_date').each( function () { + var UTC = $(this).html(); + var date = new Date(UTC); + $(this).html(date.toLocaleString()); + }); +</script> diff --git a/view/tpl/regate.tpl b/view/tpl/regate.tpl index 38135d424..bae0884dc 100644 --- a/view/tpl/regate.tpl +++ b/view/tpl/regate.tpl @@ -20,4 +20,3 @@ </form> <div class="clear"></div> - |