Closed Bug 1876980 Opened 5 months ago Closed 5 months ago

HTML input type="datetime-local" dosen’t work in FIREFOX

Categories

(Core :: Layout: Form Controls, defect)

Firefox 123
defect

Tracking

()

RESOLVED DUPLICATE of bug 1726108

People

(Reporter: mail, Unassigned)

Details

Attachments

(1 file)

Attached file firefox.pdf

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

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.

Component: Untriaged → PDF Viewer
Status: UNCONFIRMED → RESOLVED
Closed: 5 months ago
Duplicate of bug: 1726108
Resolution: --- → DUPLICATE

It has nothing to do with 'Firefox::PDF Viewer'
Regards Ole

Component: PDF Viewer → Layout: Form Controls
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: