Ngx-bootstrap: datepicker clearing hours

Created on 8 Mar 2018  路  7Comments  路  Source: valor-software/ngx-bootstrap

Hello,
i have problem with datepicker, this bug can be reproduced on demo page:

  1. open https://valor-software.com/ngx-bootstrap/#/datepicker#reactive-forms
  2. select date with current month (eg. 8.03)
  3. value is: "date": "2018-03-08T10:36:25.000Z"
  4. change date to another month (eg. 8.02)
  5. value is: now "date": "2018-02-07T23:00:00.000Z"

hours were changed to midnight, this is not happening when i change date in same month (eg from 8.03 to 10.03)

Versions of ngx-bootstrap

ngx-bootstrap: v2.0.2

comp(datepicker)

Most helpful comment

@valorkin this issue is closed but still happening in the latest version, any update please will be highly appreciated

All 7 comments

Hope fix will get soon.

Major issue if one is relying on the current time in their dates

Because it is still not fixed, i fixed this temporarily by creating component with datepicker, and on "bsValueChange" before i emit model value i am setting hours/minutes/secondsas they were before date changed.

Know issue, will be fixed soon

@valorkin this issue is closed but still happening in the latest version, any update please will be highly appreciated

it still not fixed

What's the definition of soon here? Same issue on the latest version 5.6.1.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

webdev48 picture webdev48  路  3Comments

ctrl-brk picture ctrl-brk  路  3Comments

tpiros picture tpiros  路  3Comments

haisaco picture haisaco  路  3Comments

srjkrl20011991 picture srjkrl20011991  路  3Comments