Skip to content

Commit 2221dda

Browse files
author
Daniel Fernández Giménez
committed
actualiza año de copyright y mejora uso de DateTime en ReportServicioAT
1 parent 9ca25fb commit 2221dda

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Controller/ReportServicioAT.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* This file is part of Servicios plugin for FacturaScripts
4-
* Copyright (C) 2020-2026 Carlos Garcia Gomez <carlos@facturascripts.com>
4+
* Copyright (C) 2026 Carlos Garcia Gomez <carlos@facturascripts.com>
55
*
66
* This program is free software: you can redistribute it and/or modify
77
* it under the terms of the GNU Lesser General Public License as
@@ -19,6 +19,7 @@
1919

2020
namespace FacturaScripts\Plugins\Servicios\Controller;
2121

22+
use DateTime;
2223
use FacturaScripts\Core\Base\Controller;
2324

2425
/**
@@ -159,7 +160,7 @@ protected function loadOpenServicesLastYear(): void
159160
protected function loadServicesByMonth(): void
160161
{
161162
// genera los 12 meses completos con valor 0 para no dejar huecos en el gráfico
162-
$now = new \DateTime();
163+
$now = new DateTime();
163164
for ($i = 11; $i >= 0; $i--) {
164165
$date = clone $now;
165166
$date->modify("-$i months");

0 commit comments

Comments
 (0)