Skip to content

Commit

Permalink
Add leading zero to minutes in top bar. Resolve #779
Browse files Browse the repository at this point in the history
  • Loading branch information
andybusse committed Jul 28, 2012
1 parent f8dc5f2 commit c04115e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/openissues.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@
<script type="text/javascript">
function showTime() {
time = new Date();
var minutes = time.getMinutes();
if (minutes < 10){
minutes = "0" + minutes;
}
timeBox = document.getElementById('time');
timeBox.innerHTML = time.getHours()+":"+time.getMinutes();
timeBox.innerHTML = time.getHours()+":"+minutes;
}
window.onload = showTime;
</script>
Expand Down

0 comments on commit c04115e

Please sign in to comment.