Skip to content

Commit

Permalink
Use 24-hour time format for minute marks in chart
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuddotorg committed Apr 18, 2016
1 parent 341b1c2 commit 5864800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function init (client, d3, $) {
var tickFormat = localeFormatter.timeFormat.multi( [
['.%L', function(d) { return d.getMilliseconds(); }],
[':%S', function(d) { return d.getSeconds(); }],
['%I:%M', function(d) { return d.getMinutes(); }],
[client.settings.timeFormat === 24 ? '%H:%M' : '%I:%M', function(d) { return d.getMinutes(); }],
[client.settings.timeFormat === 24 ? '%H:%M' : '%-I %p', function(d) { return d.getHours(); }],
['%a %d', function(d) { return d.getDay() && d.getDate() !== 1; }],
['%b %d', function(d) { return d.getDate() !== 1; }],
Expand Down Expand Up @@ -586,4 +586,4 @@ function init (client, d3, $) {
return chart;
}

module.exports = init;
module.exports = init;

0 comments on commit 5864800

Please sign in to comment.