Skip to content

Timepicker ignores provided moment adapter #30933

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mrbreck opened this issue Apr 23, 2025 · 0 comments
Open

Timepicker ignores provided moment adapter #30933

mrbreck opened this issue Apr 23, 2025 · 0 comments

Comments

@mrbreck
Copy link

mrbreck commented Apr 23, 2025

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

@JeanMeche JeanMeche transferred this issue from angular/angular Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant