vue-cal icon indicating copy to clipboard operation
vue-cal copied to clipboard

Weekly view of the calendar is displaying the wrong date when startWeekOnSunday is set to true

Open Cynically opened this issue 2 years ago • 7 comments

When startWeekOnSunday is set to true, the date in the Week view is shifted by a day. So Sunday is Oct 1st, Monday is Oct 2nd, and Tuesday is Oct 3rd etc. The correct date should've been Sunday 2, Monday 3, Tuesday 4 etc.

image

Here's the code to reproduce https://codepen.io/cynically-the-looper/pen/qBYKNQb?editors=1010

Cynically avatar Oct 03 '22 16:10 Cynically

I can confirm this is happening and I can also confirm that I tested fix #514 and it's working perfectly.

marianogoldman avatar Dec 10 '22 00:12 marianogoldman

Hi, any idea when this will get merged in?

CharlieDigital avatar Jan 10 '23 07:01 CharlieDigital

Still I face the same issue that When startWeekOnSunday is set to true, the date in the Week view is shifted by a day. Can someone help me?

elavarasan-star avatar Feb 13 '23 11:02 elavarasan-star

@antoniandre Is there anything blocking to fix this issue? The PR has been peer-reviewed and seem to have been tested. Do you need help with this?

DNA-PC avatar Jun 02 '23 13:06 DNA-PC

@antoniandre , Could you please look at this commit, really need startWeekOnSunday function to be fixed

MengYao89 avatar Nov 27 '23 17:11 MengYao89

For those who need a fix, I know WeWeb has forked and fixed this issue at https://github.com/weweb-assets/vue-cal/commits/ww-main, as they embedded this into their software and had to fix it for their own customers. I've been using that version since October and it works great.

Maybe that will help some of you!

DNA-PC avatar Nov 28 '23 08:11 DNA-PC

I am also having this issue. Is there any update on merging PR #514 ?

keifererikson avatar May 28 '24 01:05 keifererikson