Ver código fonte

Switch "Daily" RRD charts to 24hr format (#4141)

Alec Rust 2 anos atrás
pai
commit
c09c1a31b4
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      web/js/src/rrdCharts.js

+ 1 - 1
web/js/src/rrdCharts.js

@@ -57,7 +57,7 @@ function prepareChartData(rrdData, period) {
 
 function formatLabel(date, period) {
 	const options = {
-		daily: { hour: '2-digit', minute: '2-digit' },
+		daily: { hour: '2-digit', minute: '2-digit', hour12: false },
 		weekly: { weekday: 'short', day: 'numeric' },
 		monthly: { month: 'short', day: 'numeric' },
 		yearly: { month: 'long' },