Fixed loading of current Geschaeftsjahr if it is the last day of the

year
This commit is contained in:
Andreas Österreicher
2021-08-31 07:56:59 +02:00
parent 6008d97f36
commit 6034da43d8
@@ -20,8 +20,8 @@ class Geschaeftsjahr_model extends DB_Model
{
$query = 'SELECT *
FROM public.tbl_geschaeftsjahr
WHERE start <= now()
AND ende >= now()
WHERE start <= CURRENT_DATE
AND ende >= CURRENT_DATE
ORDER BY start DESC
LIMIT 1';