Skip to content

Commit

Permalink
Merge pull request #1511 from kareila/1502-js-time
Browse files Browse the repository at this point in the history
[#1502] in setTimeToNow(), don't multiply minutes by 100
  • Loading branch information
zorkian committed Aug 4, 2015
2 parents d32c8d6 + 61a6d05 commit 4e5e95f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/js/pages/entry/new.js
Expand Up @@ -579,7 +579,7 @@ var postForm = (function($) {
].join("-");
$("#js-entrytime-date").val(date).trigger("change");

var time = [ zeropad(now.getHours()), zeropad(now.getMinutes() * 100) ];
var time = [ zeropad(now.getHours()), zeropad(now.getMinutes()) ];
$("#js-entrytime-time").val(time).trigger("change");

$("#js-trust-datetime").val(1);
Expand Down Expand Up @@ -683,4 +683,4 @@ var postForm = (function($) {

jQuery(function($) {
postForm.init(window.postFormInitData);
});
});

0 comments on commit 4e5e95f

Please sign in to comment.