mirror of
https://github.com/friendica/friendica
synced 2025-04-22 19:50:11 +00:00
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
|
@ -167,13 +167,12 @@ class Compose extends BaseModule
|
|||
'$placeholdercategory' => (Feature::isEnabled(local_user(),'categories') ? DI::l10n()->t('Categories (comma-separated list)') : ''),
|
||||
'$scheduled_at' => Temporal::getDateTimeField(
|
||||
new DateTime(),
|
||||
DateTime::createFromFormat(DateTimeFormat::MYSQL, DateTimeFormat::local('now + 6 months')),
|
||||
new DateTime('now + 6 months'),
|
||||
null,
|
||||
DI::l10n()->t('Scheduled at'),
|
||||
'scheduled_at',
|
||||
'scheduled_at'
|
||||
),
|
||||
|
||||
|
||||
'$title' => $title,
|
||||
'$category' => $category,
|
||||
'$body' => $body,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue