mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-19 08:20:19 +00:00
Fix hour mismatch home charts
This commit is contained in:
parent
7c0b592715
commit
019367ca93
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class _HomeChartState extends State<HomeChart> {
|
|||
|
||||
if (!(appConfigProvider.hideZeroValues == true && isEmpty == true)) {
|
||||
List<DateTime> dateTimes = [];
|
||||
DateTime currentDate = DateTime.now().subtract(Duration(hours: widget.hoursInterval*widget.data.length+1));
|
||||
DateTime currentDate = DateTime.now().subtract(Duration(hours: widget.hoursInterval*widget.data.length));
|
||||
for (var i = 0; i < widget.data.length; i++) {
|
||||
currentDate = currentDate.add(Duration(hours: widget.hoursInterval));
|
||||
dateTimes.add(currentDate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue