-
-
Notifications
You must be signed in to change notification settings - Fork 254
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
6 version ngModelChange returns values in wrong time-zone #533
Comments
If anybody needs this library in local time instead of UTC I created this package as a temporary solution until the authors provide a logic to set any timezone: |
datepicker package is not taking timezone in time selection. It is a known issue, waiting for correction in the main package. cf. fetrarij/ngx-daterangepicker-material#533
Same problem, the downgraded version to 5 is fine. May I ask when the new version will be repaired |
My solution of this problem.
As far as I understand, problem in uncorrect UTC, because in library utc is hard coded in zero zone. If do something like this, I think it would be better if datepicker had flag |
it should return values in local timezone. But instead it adds +3 hours. My timezone is (+3). So when I pick 19:00. It saves it as 19:00(But in UTC, not in my timezone). And js date show me 22:00 because of that. Why ? and how to fix this behavior to make it like version 5 ?
The text was updated successfully, but these errors were encountered: