]> git.mxchange.org Git - friendica.git/commitdiff
Simplify max_data parameter for Temporal::getDateTimeField
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 14 Sep 2021 21:59:05 +0000 (17:59 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 15 Sep 2021 19:56:44 +0000 (15:56 -0400)
include/conversation.php
src/Module/Item/Compose.php

index c49aacb17780cd3ed6a2c2713110b6adad8dbe14..1cb2c745cc50a058a45d5382eb2a3d3cb1e2e543 100644 (file)
@@ -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'),
index 29fdbea746c88b1a78ed8ca47165082bfb5de421..f81b0c89692588cf754daf1d7baa314d217213f4 100644 (file)
@@ -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,