Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify max_data parameter for Temporal::getDateTimeField in include/conversation #10715

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/conversation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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") : '',
'$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'
),
'$wait' => DI::l10n()->t('Please wait'),
'$permset' => DI::l10n()->t('Permission settings'),
Expand Down
5 changes: 2 additions & 3 deletions src/Module/Item/Compose.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,12 @@ public static function content(array $parameters = [])
'$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,
Expand Down