Skip to content
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

firstDayOfWeek and lastDayofWeek incorrect results #1

Closed
ghost opened this issue May 13, 2015 · 2 comments
Closed

firstDayOfWeek and lastDayofWeek incorrect results #1

ghost opened this issue May 13, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented May 13, 2015

I am +2 GMT zone. For today, the first day of week shows as 10 (sunday) which is incorrect. the last day shows as 17 (sunday). If firstdayofweek is 10 then the lastdayofweek should be 16. The firstdayofweek for my computer is 11 and the last day is 17 (monday is the first day of week).

screen shot 2015-05-13 at 12 33 53

@malcommac
Copy link
Owner

Hi,
I've fixed the bug and now it should works fine.
SwiftDate 1.0.3 reference commit is here: cc2432d

Please be sure to check your current system NSLocale format in order to get the correct results (ie. Italy's first weekday is Monday and not Sunday)

@ghost
Copy link
Author

ghost commented May 15, 2015

Works like a charm, thank you.

malcommac pushed a commit that referenced this issue Feb 2, 2016
malcommac pushed a commit that referenced this issue Nov 10, 2017
malcommac pushed a commit that referenced this issue Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant