Permalink
Browse files
docs(dateFilter): fix docs to match implementation for week no format…
…ting The existing documentation claims that dateFilter determines week no according to the ISO8601 standard, but this is not the case as illustrated by tests in this PR. More specifically, the implementation deviates from ISO8601 in 2 important aspects: - impl assumes Sun to be the first day of a week, ISO8601 mandates Mon - impl allows weeks 0 (for years starting on Fri, Sat) while ISO8601 would mark them as a week 52/53 of a previous year. Fixes #10314 Closes #10313 Closes #10445
- Loading branch information
Showing
with
32 additions
and 2 deletions.
- +2 −2 src/ng/filter/filters.js
- +30 −0 test/ng/filter/filtersSpec.js