change times to local timezone before page render

This commit is contained in:
Michael Save 2012-02-20 02:32:53 +11:00
parent e8bfdfd9c8
commit 78901785fd
3 changed files with 9 additions and 1 deletions

View File

@ -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>

View File

@ -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 = {

View File

@ -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>