Skip to content

Commit

Permalink
fix issue with str_to_time not handling -- as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-jackson committed Jan 14, 2025
1 parent 233fb5e commit 67c4663
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/common/helpers/MySqlDateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public static function formatDateTime(int $timestamp): string
*/
public static function relative(string $difference = '+30 days'): string
{
$difference = str_replace('--', '+', $difference);
return self::formatDate(strtotime($difference));
}

Expand Down

0 comments on commit 67c4663

Please sign in to comment.