HTML input type="datetime-local" dosen’t work in FIREFOX
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
People
(Reporter: mail, Unassigned)
Details
Attachments
(1 file)
284.43 KB,
application/pdf
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0
Steps to reproduce:
The firefox browser is running in a danish environment.
In an html form I am using the input type: datetime-local.
The example is available in following link
https://olelyng.dk/test/htmlInputTypes/input_type_datetime-local.php
and the code is shown below:
<!DOCTYPE html>
<html>
<body>
<h1>Show a Date and Time Control</h1>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<label for="birthdaytime">Birthday (date and time):</label>
<input type="datetime-local" id="birthdaytime" name="birthdaytime">
<br>
<input type="submit">
</form>
<?
if (isset($_POST['birthdaytime']))
$birthdaytime = (!empty($_POST['birthdaytime']))?date("d-m-Y H:i",strtotime($_POST['birthdaytime'])):"empty input";
else
$birthdaytime = "not started";
?>
birthday: <?=$birthdaytime?>
</body>
</html>
Actual results:
What happens is shown in included file first page
Expected results:
What version should have happened is shown in included file second page
Please note, that Firefox android version seams to be OK
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•1 year ago
|
Reporter | ||
Comment 3•1 year ago
|
||
It has nothing to do with 'Firefox::PDF Viewer'
Regards Ole
Updated•1 year ago
|
Description
•