You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@arangates this is due to the timezone component in the Date. You can you something like this const utcDate = new Date(Date.UTC( your_date.getFullYear(), your_date.getMonth(), your_date.getDate(), your_date.getHours(), your_date.getMinutes())); const resultDate = Json.stringify(utcDate);
Bug description or feature request:
i use BsConfig dateInputFormat : "DD-MM-YYYY" .
if i select a date it shows correct date for eg: i select 2018-07-26
actual value 2018-07-25T22:00:00.000Z
expected value 2018-07-26T00:00:00.000Z
what i found is the day is reduced by 1 and it adds 22 hours in time. How to fix this ?
Versions of ngx-bootstrap, Angular, and Bootstrap:
ngx-bootstrap:^3.0.1
Angular:6.0.0
Bootstrap:4.1.1
Build system: Angular CLI
The text was updated successfully, but these errors were encountered: