Skip to content

Unselected Year/Month/Day not working in {html_select_date} #395

@jdrsunshine

Description

@jdrsunshine

Using the latest master from GitHub (or the 3.1.30 release), it is not possible to have an unselected Year/Month/Day, as described in the documentation (see below). Attempting to use "2015-08-" as a time value (for example) defaults to the current date.

On:
https://www.smarty.net/docs/en/language.function.html.select.date.tpl

year_empty -> "use values like “-MM-DD” as time-attribute to indicate an unselected year"
month_empty -> "use values like “YYYY--DD” as time-attribute to indicate an unselected month"
day_empty -> "use values like “YYYY-MM-” as time-attribute to indicate an unselected day"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions