Remove jenssegers/date and solely use Carbon

This commit is contained in:
James Brooks
2017-01-02 16:11:15 +00:00
parent a2bbb18f79
commit 2b75eca7d0
11 changed files with 25 additions and 86 deletions
+2 -2
View File
@@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/
use Carbon\Carbon;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Request;
use Jenssegers\Date\Date;
if (!function_exists('set_active')) {
/**
@@ -47,7 +47,7 @@ if (!function_exists('formatted_date')) {
{
$dateFormat = Config::get('setting.date_format', 'jS F Y');
return (new Date($date))->format($dateFormat);
return Carbon::parse($date)->format($dateFormat);
}
}