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 @@
{% if mod %}{% endif %}
{{ body }}
+
+ {% if config.javascript_local_time %}
+
+ {% endif %}
+
{% trans %}Delete Post{% endtrans %} [
]
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 @@
{% if mod %}
{% endif %}
{{ body }}
+ {% if config.javascript_local_time %}
+
+ {% endif %}
+
{% trans %}Delete Post{% endtrans %} [
]