Skip to content

Timepicker ignores provided moment adapter #30933

@mrbreck

Description

@mrbreck

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

No

Description

Timepicker is either not using the provided moment adapter or is ignoring the "useUtc" setting. If I set "useUtc" to "true" on the adapter then it works for any Datepicker in the component, but any Timepicker has "_isUtc" set to false.

Even when binding the Datepicker and Timepicker to the same property, changing the Date will instantiate and bind to a new moment object with "_isUtc" set to "true", but changing the Time will instantiate and bind to a new moment object with "_isUtc" set to "false."

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw


Please provide the environment you discovered this bug in (run ng version)


Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions