From 67c46639f60274fd9b5ba4f93d5af64aa54e99c1 Mon Sep 17 00:00:00 2001 From: Jason Jackson Date: Tue, 14 Jan 2025 14:26:52 -0500 Subject: [PATCH] fix issue with str_to_time not handling -- as expected --- application/common/helpers/MySqlDateTime.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/common/helpers/MySqlDateTime.php b/application/common/helpers/MySqlDateTime.php index a62da06d..5587abec 100644 --- a/application/common/helpers/MySqlDateTime.php +++ b/application/common/helpers/MySqlDateTime.php @@ -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)); }