Rolling calendar - double entry bug


(Anthony) #1

Earlier this month I added a rolling calendar asset set to list months, 5 past 6 future. The time unit format prints out the month and year. For the past few weeks its been working fine, showing from Mar 2013 to Feb 2014.

 

This morning it broke... February 2014 disappeared and instead I see TWO identical entries both for March 2014. I'm assuming this is some wierd bug revolving around today being the 29th of the month and Feb having only 28 days.

 

I'm on Squiz 4.4.2. Upgrading very soon so does anyone know if this is a bug that's been fixed in the interim?

 

Anthony


(Anthony) #2

Since I started this thread, we've upgraded to 4.16.2... and unfortunately there's definitely still a bug in the rolling calendar. Today is 29th of the month, and the list of months is again ignoring february and showing march twice. It'll be the same until 1st October and then it'll right itself again.

 

To recreate..

  • set up a rolling calendar asset. Point its root anywhere.. in my case somewhere with no actual events to list, I'm only interested in using it to generate the time unit sequence to use on a series of tabs.
  • Set time unit = months, set from to 5 months past and end to 6 months future
  • Edit the time unit format and set it to %time_unit_start_datetime_M% %time_unit_start_datetime_Y%

 

What you should see is a list of all months from "April 2013" ending in "March 2014". What you'll see today and tomorrow is a list that ends with TWO entries saying "March 2014" and NO entry for "February 2014"

 

Assuming someone can recreate, I'd love to have it logged as a bug and patched! It has to be some simple miscalculation in the "month" time unit assuming it can add 30 days to get the start of the next month

 

Anthony  


(Nic Hubbard) #3

You need to report this as a bug ASAP: http://bugs.matrix.squiz.net


(Anthony) #4

Logged! I didnt realise I could register for a login to the bug tracker, I've only ever used "guest" to view things.


(Anthony) #5

Today (October 31st) i realised this is worse than I thought... its not just february! For today only, any month that has 30 days (or less) is omitted from the timeline and the following month doubles up. Seems like the code must be totally hard coded to assume 31 day months. The bug I logged has been assigned to one of the Squiz devs but no feedback or comment on there. I've just updated it with my latest observation.

 

Given the bug has been there since release 4.4 and still in 4.16 and other people arent screaming about it I can only assume either (a) nobody much uses the rolling calendar asset or ( b ) perhaps the bug only occurs with the specific configuation I am using (i.e. using it simply to generate the a list of months using the time unit format)


(Nic Hubbard) #6

Given the bug has been there since release 4.4 and still in 4.16 and other people arent screaming about it I can only assume either (a) nobody much uses the rolling calendar asset or ( b ) perhaps the bug only occurs with the specific configuation I am using (i.e. using it simply to generate the a list of months using the time unit format)

 

I am seeing this issue too. I use the Rolling Calendar Page all the time but have never seen this issue in production pages. Tested on 4.18.0RC1 and getting the same issue you described.

 

Can you post your bug # for this?


(Anthony) #7

 

Can you post your bug # for this?

 

Yep its 6568.

 

http://bugs.matrix.squiz.net/view_bug.php?bug_id=6568