Release 2.0.18 (#4003)
* prevent too long values for user preferences * add chart value 0 to y-axis if last value > 0, to always display the zero line (project details) * add user-preferences to invoice hydrator * DateTime vs DateTimeInterface * simplify permission config * fix query for teamleads limiting to only selected teams not possible
This commit is contained in:
@@ -19,6 +19,8 @@ use Twig\TwigTest;
|
||||
|
||||
final class Extensions extends AbstractExtension
|
||||
{
|
||||
public const REPORT_DATE = 'Y-m-d';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
@@ -56,9 +58,9 @@ final class Extensions extends AbstractExtension
|
||||
];
|
||||
}
|
||||
|
||||
public function formatReportDate(\DateTime $dateTime): string
|
||||
public function formatReportDate(\DateTimeInterface $dateTime): string
|
||||
{
|
||||
return $dateTime->format('Y-m-d');
|
||||
return $dateTime->format(self::REPORT_DATE);
|
||||
}
|
||||
|
||||
public function getIsoDayByName(string $weekDay): int
|
||||
|
||||
Reference in New Issue
Block a user