Skip to content

Commit

Permalink
Update LegacyRowMapper.php
Browse files Browse the repository at this point in the history
Signed-off-by: Kaley <kaleidox@comroid.org>
  • Loading branch information
burdoto authored Nov 26, 2024
1 parent 7a7ae63 commit 463c260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Db/LegacyRowMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') : '';
Expand Down

0 comments on commit 463c260

Please sign in to comment.