diff --git a/app/Constants.php b/app/Constants.php index 3f9b4c4526..6b575a4b34 100644 --- a/app/Constants.php +++ b/app/Constants.php @@ -292,7 +292,7 @@ if (! defined('APP_NAME')) { define('NINJA_APP_URL', env('NINJA_APP_URL', 'https://app.invoiceninja.com')); define('NINJA_DOCS_URL', env('NINJA_DOCS_URL', 'http://docs.invoiceninja.com/en/latest')); define('NINJA_DATE', '2000-01-01'); - define('NINJA_VERSION', '3.1.1' . env('NINJA_VERSION_SUFFIX')); + define('NINJA_VERSION', '3.1.2' . env('NINJA_VERSION_SUFFIX')); define('SOCIAL_LINK_FACEBOOK', env('SOCIAL_LINK_FACEBOOK', 'https://www.facebook.com/invoiceninja')); define('SOCIAL_LINK_TWITTER', env('SOCIAL_LINK_TWITTER', 'https://twitter.com/invoiceninja')); diff --git a/app/Models/Traits/GeneratesNumbers.php b/app/Models/Traits/GeneratesNumbers.php index dc7bb843ae..352293419b 100644 --- a/app/Models/Traits/GeneratesNumbers.php +++ b/app/Models/Traits/GeneratesNumbers.php @@ -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]); } diff --git a/docs/conf.py b/docs/conf.py index feb963a870..244e40665b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -59,7 +59,7 @@ author = u'Invoice Ninja' # The short X.Y version. version = u'3.1' # The full version, including alpha/beta/rc tags. -release = u'3.1.1' +release = u'3.1.2' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.