From 6e83579c1414fd07bcf9a2eed25497061a96849f Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 8 Mar 2017 20:45:24 +0200 Subject: [PATCH] Fix invoice number w/date format --- app/Models/Traits/GeneratesNumbers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Traits/GeneratesNumbers.php b/app/Models/Traits/GeneratesNumbers.php index 7eddd0f6bf..8eb2b43989 100644 --- a/app/Models/Traits/GeneratesNumbers.php +++ b/app/Models/Traits/GeneratesNumbers.php @@ -161,7 +161,7 @@ trait GeneratesNumbers if (count($matches) > 1) { $format = $matches[1]; $search[] = $matches[0]; - $date = Carbon::now(session(SESSION_TIMEZONE, DEFAULT_TIMEZONE))->format($format); + $date = date_create()->format($format); $replace[] = str_replace($format, $date, $matches[1]); }