Remove dependency on IntlDateFormatter

This commit is contained in:
Samuel Georges 2015-09-30 20:52:31 +10:00
parent 8139def435
commit 2ecf2db311
1 changed files with 2 additions and 6 deletions

View File

@ -4,7 +4,7 @@ use App;
use File;
use Config;
use Backend\Models\UserPreferences;
use IntlDateFormatter;
use Carbon\Carbon;
/**
* Represents a file or folder in the Media Library.
@ -140,10 +140,6 @@ class MediaLibraryItem
return null;
}
return IntlDateFormatter::create(
App::getLocale(),
IntlDateFormatter::MEDIUM,
IntlDateFormatter::NONE
)->format($date);
return Carbon::createFromTimestamp($date)->toFormattedDateString();
}
}