Skip to content
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

Datepicker: Sets time inconsistently #1284

Open
1 task done
Foteno opened this issue Mar 29, 2024 · 0 comments
Open
1 task done

Datepicker: Sets time inconsistently #1284

Foteno opened this issue Mar 29, 2024 · 0 comments
Labels
Comp: Datepicker Type: Bug Something isn't working

Comments

@Foteno
Copy link

Foteno commented Mar 29, 2024

Bug already reported?

  • I confirm that I have checked if the bug already has been reported

For which framework/library you are reporting the bug

Angular

Component name

datepicker

Description

When using datepicker dropdown while selecting date, then value of date's time component is set to 0. But when using the input field to set the date, then time part of Date object is set to current time.

Steps To Reproduce

I made a repo of this example: https://github.com/Foteno/datepicker-example

  1. First scenario
    1. Press calendar button
    1. Select day in the calendar dropdown
    1. Notice time was set to 00:00:00
  1. Second scenario
    1. Select year or month or day part in the input field
    1. Change it
    1. Notice that time was set to current time and not 00:00:00

Current Behaviour

Selecting date gives time part of Date object of 0.
Using input field for date sets time part of Date object to current time.

Expected Behaviour

Sets time consistently to 00:00:00

@Foteno Foteno added the Type: Bug Something isn't working label Mar 29, 2024
@EldRoos EldRoos changed the title Datepicker sets time inconsistently Datepicker: Sets time inconsistently Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Comp: Datepicker Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants