calendarDate not taking into account weekStartsOn in week view
See original GitHub issueDescribe the bug
In my project week starts on monday, when switching to week view I can see current week (monday 18.3.2019 through sunday 24.3.2019) but date shown in the header shows march 17th - march 23rd.
Minimal reproduction of the problem with instructions
https://stackblitz.com/edit/angular-awmwgk
Screenshots
Versions
@angular/core
: 6.1.4angular-calendar
: 0.26.4 (bug tested on demo stackblitz of kitchensink)- Browser name and version: Google Chrome 72.0.3626.121
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
CalendarDatePipe - angular-calendar documentation
where `viewDate` is a `Date` and view is `'month' | 'week' | 'day'` {{ viewDate | calendarDate:(view + 'ViewTitle'):'en' }}.
Read more >Angular 4.0 Calendar - Show time in week view
The app allows user to switch between the month, week and day view. The week view however shows only the dates in that...
Read more >angular-calendar | Yarn - Package Manager
A calendar component for angular 15.0+ that can display events on a month, week or day view. angular, angular2, calendar, schematics ...
Read more >Building a Calendar for Ionic With Angular Calendar & ...
This Calendar for Angular is using the quite popular FullCalendar, ... We also want to achieve a special weekly view (which is actually...
Read more >react-date-range
A React component for choosing dates and date ranges.. Latest version: 1.4.0, last published: a year ago. Start using react-date-range in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mattlewis92 I have a problem with weekStartsOn… Can be a bug calendar.
this is my code.
HTML
<div [ngSwitch]="view">TS: weekStartsOn: number = DAYS_OF_WEEK.MONDAY; weekendDays: number[] = [DAYS_OF_WEEK.FRIDAY, DAYS_OF_WEEK.SATURDAY];
When i set this: <div class="col-md-4">
{{ viewDate | calendarDate:(view + ‘ViewTitle’):‘en’:weekStartsOn }}
</div>there is not any change 😦
Thanks a lot.