Skip to content

Commit

Permalink
Update lib/private/DateTimeFormatter.php
Browse files Browse the repository at this point in the history
Co-authored-by: Côme Chilliet <[email protected]>
Signed-off-by: Hamid Dehnavi <[email protected]>
  • Loading branch information
shdehnavi and come-nc authored Sep 5, 2023
1 parent 9b92c1a commit 0808e19
Showing 1 changed file with 1 addition and 1 deletion.
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($formatDate, '^') && !str_ends_with($formatDate, '*')) {
if (!str_ends_with($format, '^') && !str_ends_with($format, '*')) {
$format .= '^';
}

Expand Down

0 comments on commit 0808e19

Please sign in to comment.