Skip to content

Comments

Support for datetime-local#1532

Open
ynamite wants to merge 1 commit intoyakamara:masterfrom
ynamite:patch-2
Open

Support for datetime-local#1532
ynamite wants to merge 1 commit intoyakamara:masterfrom
ynamite:patch-2

Conversation

@ynamite
Copy link
Contributor

@ynamite ynamite commented Oct 16, 2024

Support HTML datetime-local, allows usage of a native date/time picker. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local

The input has to have a type of datetime-local

Support HTML datetime-local, allows usage of a native date/time picker. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local

The input has to have a type of `datetime-local`
@AWqxKAWERbXo
Copy link
Contributor

AWqxKAWERbXo commented Mar 24, 2025

duplicate #1239, closes #1216

@dergel wenn's auch weniger abwärtskompatibel sein darf und die Select-Felder verschwinden dürfen, die unzulässige Eingaben wie den 31.02.2025 ermöglichen:

https://github.com/alexplusde/yform_field/blob/main/lib/yform/value/datetime_local.php bitte einfach bedienen.

} else {
$value = (string) $value;
$value = explode(' ', $value);
$localTimeTest = explode(' ', $value);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wäre es nicht einfacher nur das "T" mit einer Zeile $value = str_replace('T','',$value); zu ersetzen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants