Simplify max_data parameter for Temporal::getDateTimeField
This commit is contained in:
parent
69642132c1
commit
9a0c3cc834
2 changed files with 4 additions and 5 deletions
|
@ -1147,10 +1147,10 @@ function status_editor(App $a, array $x = [], $notes_cid = 0, $popup = false)
|
||||||
'$placeholdercategory' => Feature::isEnabled(local_user(), 'categories') ? DI::l10n()->t("Categories \x28comma-separated list\x29") : '',
|
'$placeholdercategory' => Feature::isEnabled(local_user(), 'categories') ? DI::l10n()->t("Categories \x28comma-separated list\x29") : '',
|
||||||
'$scheduled_at' => Temporal::getDateTimeField(
|
'$scheduled_at' => Temporal::getDateTimeField(
|
||||||
new DateTime(),
|
new DateTime(),
|
||||||
DateTime::createFromFormat(DateTimeFormat::MYSQL, DateTimeFormat::local('now + 6 months')),
|
new DateTime('now + 6 months'),
|
||||||
null,
|
null,
|
||||||
DI::l10n()->t('Scheduled at'),
|
DI::l10n()->t('Scheduled at'),
|
||||||
'scheduled_at',
|
'scheduled_at'
|
||||||
),
|
),
|
||||||
'$wait' => DI::l10n()->t('Please wait'),
|
'$wait' => DI::l10n()->t('Please wait'),
|
||||||
'$permset' => DI::l10n()->t('Permission settings'),
|
'$permset' => DI::l10n()->t('Permission settings'),
|
||||||
|
|
|
@ -167,13 +167,12 @@ class Compose extends BaseModule
|
||||||
'$placeholdercategory' => (Feature::isEnabled(local_user(),'categories') ? DI::l10n()->t('Categories (comma-separated list)') : ''),
|
'$placeholdercategory' => (Feature::isEnabled(local_user(),'categories') ? DI::l10n()->t('Categories (comma-separated list)') : ''),
|
||||||
'$scheduled_at' => Temporal::getDateTimeField(
|
'$scheduled_at' => Temporal::getDateTimeField(
|
||||||
new DateTime(),
|
new DateTime(),
|
||||||
DateTime::createFromFormat(DateTimeFormat::MYSQL, DateTimeFormat::local('now + 6 months')),
|
new DateTime('now + 6 months'),
|
||||||
null,
|
null,
|
||||||
DI::l10n()->t('Scheduled at'),
|
DI::l10n()->t('Scheduled at'),
|
||||||
'scheduled_at',
|
'scheduled_at'
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
||||||
'$title' => $title,
|
'$title' => $title,
|
||||||
'$category' => $category,
|
'$category' => $category,
|
||||||
'$body' => $body,
|
'$body' => $body,
|
||||||
|
|
Loading…
Reference in a new issue