Log time needs to be UTC
This commit is contained in:
parent
41ae0219a5
commit
19c4d88fcb
|
@ -32,7 +32,7 @@
|
|||
<div class="form-group">
|
||||
<label class="control-label">Time</label>
|
||||
<div class="controls">
|
||||
<p id="id_curr_time" class="form-control-static">noot</p>
|
||||
<p id="id_curr_time" class="form-control-static">{% now "H:i:s" %}</p>
|
||||
</div>
|
||||
</div>
|
||||
{% crispy form %}
|
||||
|
@ -149,7 +149,7 @@ $(document).ready(function() {
|
|||
|
||||
function displayTimeInForm() {
|
||||
var d = new Date();
|
||||
dstr = zeropad(d.getHours()) + ":" + zeropad(d.getMinutes()) + ":" + zeropad(d.getSeconds());
|
||||
dstr = zeropad(d.getUTCHours()) + ":" + zeropad(d.getUTCMinutes()) + ":" + zeropad(d.getUTCSeconds());
|
||||
$("#id_curr_time").text(dstr);
|
||||
}
|
||||
window.setInterval(displayTimeInForm, 200);
|
||||
|
|
Loading…
Reference in New Issue