diff --git a/lib/Db/LegacyRowMapper.php b/lib/Db/LegacyRowMapper.php index 7e2c35182..3ee7089ba 100644 --- a/lib/Db/LegacyRowMapper.php +++ b/lib/Db/LegacyRowMapper.php @@ -151,7 +151,7 @@ private function resolveSearchValue(string $unresolvedSearchValue, string $userI case 'datetime-date-start-of-month': return date('Y-m-01') ? date('Y-m-01') : ''; case 'datetime-date-start-of-week': $day = date('w'); - $result = date('m-d-Y', strtotime('-'.$day.' days')); + $result = date('Y-m-d', strtotime('-'.$day.' days')); return $result ?: ''; case 'datetime-time-now': return date('H:i'); case 'datetime-now': return date('Y-m-d H:i') ? date('Y-m-d H:i') : '';