Loading...
 
Skip to main content

Calendar inexplicably jumping when in quarter mode

Status
Open
Subject
Calendar inexplicably jumping when in quarter mode
Version
18.x
Category
  • Bug
Feature
Calendar
Resolution status
New
Submitted by
hman
Lastmod by
hman
Rating
(1)
Related-to
Description

When the main calendar is in quarter mode, skipping to next or previous quarters is completely inexplicable.

I skip the discussion whether or not quarters should be aligned to years. One could argue that the first quarter starts with January (method #1). But it could also be assumed that it starts with the current month (method #2). Personally, I am undecided on this. But the problem is somewhere else, and it is severe.

If you switch to quarter mode starting today (today is February 6th) you end up here: /tiki-calendar.php?viewmode=quarter which displays February through April. That can be considered correct (see the above caveat), being method #2.

Then a click on "Previous Quarter " SHOULD bring you to November through January. But it doesn't. It brings you to October through December. This is wrong, because this is method #1, while the start was method #2.

Tiki's calendar cannot asssume both, and switch between them...

Further, if you go another quarter in the past, you will get two possible correct results:

Assuming method #1 you would get July through September.
Assuming method #2 you would get August through October.

Calendar does none of those, it yields June to August...

Importance
7
Easy to solve?
7
Priority
49
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7669
Created
Saturday 06 February, 2021 13:44:32 UTC
by hman
LastModif
Saturday 06 February, 2021 13:51:15 UTC


Show PHP error messages