Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Date filter returning wrong week number  #10977

Open
@hbbh

Description

@hbbh

I'm assuming that the dateFilter with the 'w' param supplied should be returning weeks running from Monday to Sunday.

I've noticed that it's returning the incorrect weeks for the first two Sundays in 2015 (ISO-8601):

2015-01-04 (Sunday) - week 2 (should be week 1)
2015-01-11 (Sunday) - week 3 (should be week 2)

Correct week numbers can be found here:
http://www.epochconverter.com/date-and-time/weeknumbers-by-year.php

I've got an example jasmin spec confirming this here:
http://plnkr.co/edit/tAQ22cxpVbJKOC8uIFlF?p=preview

Is this a bug or am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions