diff --git a/frontend/package.json b/frontend/package.json index 431c9df..ba86a59 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "wetterstation-frontend", "private": true, - "version": "1.5.4", + "version": "1.5.5", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/src/components/WeatherDashboard.jsx b/frontend/src/components/WeatherDashboard.jsx index c709ff9..1636ab8 100644 --- a/frontend/src/components/WeatherDashboard.jsx +++ b/frontend/src/components/WeatherDashboard.jsx @@ -303,7 +303,7 @@ const WeatherDashboard = ({ data, currentData = [], rainData = [], timeRange = ' xAxisConfig.labels = { format: '{value:%d.%m}', align: 'center' } xAxisMin = now - 7 * 24 * 3600 * 1000 xAxisMax = now - tooltipDateFormat = '%d.%m.%Y - %Hh' + tooltipDateFormat = '%d.%m.%Y' break case '30d': xAxisConfig.labels = { format: '{value:%d.%m}', align: 'center' } @@ -749,7 +749,7 @@ const WeatherDashboard = ({ data, currentData = [], rainData = [], timeRange = ' ...getCommonOptions(), tooltip: { formatter: function() { - const dateFormat = timeRange === '24h' ? '%d.%m.%Y %H:%M' : (timeRange === '7d' || timeRange === '30d' ? '%d.%m.%Y - %Hh' : '%d.%m.%Y') + const dateFormat = timeRange === '24h' ? '%d.%m.%Y %H:%M' : '%d.%m.%Y' const dateStr = Highcharts.dateFormat(dateFormat, this.x) return `${dateStr}
\u25CF ${this.series.name}: ${this.y.toFixed(0)}°` }