Problem/Motivation

On a mobile phone [cellphone]: when the Calendar view is FIRST opened up, it uses the wrong default start date.
e.g. shows today's date [1st August] as 2nd April.
This occurs only when the browser is using the Mobile view (not Desktop view)
This is repeatable and uses the same incorrect start date each time.

Month, Day, Week views work fine when moving between dates.
The Today button will return to the correct date.

Happens on two mobile phones (Mozilla & Chrome).
Have refreshed browser cache, Drupal cache, etc.

Steps to reproduce

Display "Default mobile view" in Settings is set to Week.
"Default date source" in Page: Style options is set to "Current date".
Calendar view is opened up on a Mobile phone.
Displays today's date [1st August] incorrectly: 2nd April.

NB The Today button works correctly once you have switched into a different display option on the view: week, month, etc.
e.g. Switch away to another month using the arrows.
Selecting Today button will return to the correct date.
Refresh the browser tab and it reverts to the incorrect date as the current date.

NB default start date is correct when browser is using Desktop mode:
Switch browser to Desktop mode
Switch the browser setting back to Mobile mode (i.e. unclick Desktop) then it reverts to the wrong date again: 2nd April
Problem is only repeatable in different browser apps/phones using Mobile as the display option.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

asdinnie created an issue.

mingsong’s picture

There are some alternatives to this module, for example the Fullcalendar module.

asdinnie’s picture

Thanks MingSong.

I'll have a look at Full Calendar.
I initially chose Fullcalendar View (FCV) as it had more users!
I trust that Full Calendar uses the same structures so that the conversion to it from FCV is easy(ish).

Best wishes,

Andrew

mingsong’s picture

Hi @Andrew,

Thanks for your trust.

This module is used by more websites because it was the first module that integrated the FullCalendar.js with Drupal 8 in 2018.

These days, there are many options.

What you need to do is to migrate or update the configurations of your view, or simply create a new view with the other module. It shouldn't take too long.

asdinnie’s picture

Thanks again for your wisdom and help.

I'll have a go in a few days.
Other deadlines are making themselves felt...

Take care.

raywalters made their first commit to this issue’s fork.

mingsong’s picture

FYI, The 5.3.x branch is the currently active develop branch.

I will change the default branch to 5.3.x shortly.