Commit 32a46001d2e97795d91659cdd3da50726baec926
1 parent
ea45ebf9
Exists in
master
and in
2 other branches
Set time format to 24h in the time series.
Showing
3 changed files
with
5 additions
and
4 deletions
Show diff stats
CHANGELOG.md
web/static/js/swapp.js
... | ... | @@ -506,8 +506,8 @@ |
506 | 506 | this.yScale = d3.scaleLinear().domain(this.yDataExtent); |
507 | 507 | formatMillisecond = d3.timeFormat(".%L"); |
508 | 508 | formatSecond = d3.timeFormat(":%S"); |
509 | - formatMinute = d3.timeFormat("%I:%M"); | |
510 | - formatHour = d3.timeFormat("%I:%M"); | |
509 | + formatMinute = d3.timeFormat("%H:%M"); | |
510 | + formatHour = d3.timeFormat("%H:%M"); | |
511 | 511 | formatDay = d3.timeFormat("%a %d"); |
512 | 512 | formatWeek = d3.timeFormat("%b %d"); |
513 | 513 | formatMonth = d3.timeFormat("%B"); | ... | ... |
web/static/js/swapp.ls
... | ... | @@ -391,8 +391,8 @@ export class TimeSeries |
391 | 391 | |
392 | 392 | formatMillisecond = d3.timeFormat(".%L") |
393 | 393 | formatSecond = d3.timeFormat(":%S") |
394 | - formatMinute = d3.timeFormat("%I:%M") | |
395 | - formatHour = d3.timeFormat("%I:%M") | |
394 | + formatMinute = d3.timeFormat("%H:%M") | |
395 | + formatHour = d3.timeFormat("%H:%M") | |
396 | 396 | formatDay = d3.timeFormat("%a %d") |
397 | 397 | formatWeek = d3.timeFormat("%b %d") |
398 | 398 | formatMonth = d3.timeFormat("%B") | ... | ... |