Skip to content

Commit

Permalink
Fix "start of week" filter not working on table views
Browse files Browse the repository at this point in the history
Signed-off-by: Kaley <kaleidox@comroid.org>
  • Loading branch information
burdoto authored Nov 25, 2024
1 parent 1a8a8fd commit 7a7ae63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Db/Row2Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ private function resolveSearchValue(string $placeholder, string $userId): string
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 7a7ae63

Please sign in to comment.