Skip to content

The DateTime component incorrectly restricts years #13579

@pento

Description

@pento

Describe the bug

The DateTime component restricts years to between 1970 and 9999. It shouldn't do that.

To Reproduce

  1. Create a new post
  2. Change the publication year to 1950.

Expected behavior

The year is changed to 1950.

Additional context

Core Ticket: https://core.trac.wordpress.org/ticket/46139

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Package] Components/packages/components[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions