Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update lib/private/DateTimeFormatter.php
Co-authored-by: Louis <[email protected]>
Signed-off-by: Hamid Dehnavi <[email protected]>
  • Loading branch information
shdehnavi and artonge authored Sep 5, 2023
commit 9b92c1abe41e3c1b4fe82770d56bde2d935fa98f
2 changes: 1 addition & 1 deletion lib/private/DateTimeFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function formatDate($timestamp, $format = 'long', \DateTimeZone $timeZone
* @return string Formatted relative date string
*/
public function formatDateRelativeDay($timestamp, $format = 'long', \DateTimeZone $timeZone = null, \OCP\IL10N $l = null) {
if (!str_ends_with($format, '*')) {
if (!str_ends_with($formatDate, '^') && !str_ends_with($formatDate, '*')) {
$format .= '^';
}

Expand Down