configure am/pm time-format as user preference (#2789)
This commit is contained in:
@@ -64,13 +64,12 @@ final class ConfigurationController extends BaseApiController
|
||||
|
||||
$model = new I18nConfig();
|
||||
$model
|
||||
->setFormDateTime($formats->getDateTimeTypeFormat($locale))
|
||||
->setFormDate($formats->getDateTypeFormat($locale))
|
||||
->setDateTime($formats->getDateTimeFormat($locale))
|
||||
->setDate($formats->getDateFormat($locale))
|
||||
->setDuration($formats->getDurationFormat($locale))
|
||||
->setTime($formats->getTimeFormat($locale))
|
||||
->setIs24hours($formats->isTwentyFourHours($locale))
|
||||
->setIs24hours($user->is24Hour())
|
||||
->setNow($this->getDateTimeFactory()->createDateTime())
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user