summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-02-20 02:32:53 +1100
committerMichael Save <savetheinternet@tinyboard.org>2012-02-20 02:32:53 +1100
commit78901785fd4416d7d4d54e9a46e2fd1f958658c3 (patch)
tree9774aadf3b9780938a696ac8f7ffc84fab7bcb3d /templates
parente8bfdfd9c8ec971ef12314229d4e3f2eca4c24c7 (diff)
change times to local timezone before page render
Diffstat (limited to 'templates')
-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>