summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/index.html5
-rw-r--r--templates/main.js1
-rw-r--r--templates/thread.html4
3 files changed, 9 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html
index 835ca1d9..8a9e32fa 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -40,6 +40,11 @@
<input type="hidden" name="board" value="{{ board.uri }}" />
{% if mod %}<input type="hidden" name="mod" value="1" />{% endif %}
{{ body }}
+
+ {% if config.javascript_local_time %}
+ <script>{% raw %}init_localtime();{% endraw %}</script>
+ {% endif %}
+
<div class="delete">
{% trans %}Delete Post{% endtrans %} [<input title="Delete file only" type="checkbox" name="file" id="delete_file" />
<label for="delete_file">{% trans %}File{% endtrans %}</label>] <label for="password">{% trans %}Password{% endtrans %}</label>
diff --git a/templates/main.js b/templates/main.js
index 4737e4b1..4285779c 100644
--- a/templates/main.js
+++ b/templates/main.js
@@ -226,7 +226,6 @@ function init() {
highlightReply(window.location.hash.substring(1));
{% endraw %}{% if config.inline_expanding %}{% raw %}init_expanding();{% endraw %}{% endif %}{% raw %}
- {% endraw %}{% if config.javascript_local_time %}{% raw %}init_localtime();{% endraw %}{% endif %}{% raw %}
}
var RecaptchaOptions = {
diff --git a/templates/thread.html b/templates/thread.html
index 3b1024d5..9195ada8 100644
--- a/templates/thread.html
+++ b/templates/thread.html
@@ -42,6 +42,10 @@
<input type="hidden" name="board" value="{{ board.uri }}" />
{% if mod %}<input type="hidden" name="mod" value="1" />{% endif %}
{{ body }}
+ {% if config.javascript_local_time %}
+ <script>{% raw %}init_localtime();{% endraw %}</script>
+ {% endif %}
+
<div class="delete">
{% trans %}Delete Post{% endtrans %} [<input title="Delete file only" type="checkbox" name="file" id="delete_file" />
<label for="delete_file">{% trans %}File{% endtrans %}</label>] <label for="password">{% trans %}Password{% endtrans %}</label>