Switch back to jenseggers/date

This commit is contained in:
James Brooks
2017-03-09 19:42:35 +00:00
parent ecb05d588f
commit f223e264c1
10 changed files with 26 additions and 22 deletions

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 Carbon::parse($date)->format($dateFormat);
return (new Date($date))->format($dateFormat);
}
}