-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
fix(old-datepicker): summer time #3122
fix(old-datepicker): summer time #3122
Conversation
…afari for lang pt-br in summer time
…afari for lang pt-br in summer time
Codecov Report
@@ Coverage Diff @@
## development #3122 +/- ##
===============================================
- Coverage 65.31% 65.28% -0.04%
===============================================
Files 209 209
Lines 5628 5631 +3
Branches 990 990
===============================================
Hits 3676 3676
- Misses 1689 1692 +3
Partials 263 263
Continue to review full report at Codecov.
|
@mdfonseca thanks for your help! |
@mdfonseca Could you provide more information about this issue, please (for example, create plunker sample, that reproduces this issue)? I couldn't reproduce it for Safari 11.0.1 - MacOS 10.12.06 I need this info for better understanding, what and how should I check in this pr. Thank you in advance |
https://valor-software.com/ngx-bootstrap/#/datepicker -> "Old" tab New datepicker seems ok |
Tested, looks good |
@mdfonseca can't reproduce, but I trust you :) |
if all will go by plan beta.11 will go out this Thursday - Friday |
Datepicker repeat days (ex:. 15-oct-2017) when using Safari (Mac) and lang pt-BR for summer time
Problem: Opening the datepicker on Safari in a month with summer time (ex:. 2017-oct-15 - lang: pt-BR) generates a calendar containing days 1,2,3,..,14, 15, 15, 15, 15,..., 15
Context: Safari "new Date(2017, 9, 15)" for lang pt-BR generates a date like "14 oct 2017 23:00:00", then the component "daypicker.component.ts" calls "fixTimeZone()" to fix that to "15 oct 2017" but that "fixed date" is not used to get the next day, which generates a loop of tha same day in theses cases of summer time.
Fix: Used the "fixed date" while generating/selecting days for the calendar