From 463c260e22176f5ed6cb008a974d7a0749e3fd22 Mon Sep 17 00:00:00 2001 From: Kaley Date: Tue, 26 Nov 2024 21:03:01 +0100 Subject: [PATCH] Update LegacyRowMapper.php Signed-off-by: Kaley --- lib/Db/LegacyRowMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') : '';