1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 12:12:48 +01:00

Use timezone date in custom invoice number

This commit is contained in:
Hillel Coren 2017-03-12 22:13:53 +02:00
parent 924a213dcb
commit 12a46b8c17

View File

@ -161,7 +161,8 @@ trait GeneratesNumbers
if (count($matches) > 1) {
$format = $matches[1];
$search[] = $matches[0];
$date = date_create()->format($format);
//$date = date_create()->format($format);
$date = Carbon::now(session(SESSION_TIMEZONE, DEFAULT_TIMEZONE))->format($format);
$replace[] = str_replace($format, $date, $matches[1]);
}