Calendar bug for Jan 2023

Started by Martin Wynne, January 04, 2023, 11:59:37 AM

Previous topic - Next topic

Martin Wynne

Since the New Year, there seems to be a bug in the Calendar.

Changing the month with the arrows causes this box to jump from Dec 22 straight to Mar 23. Jan and Feb 2023 have gone missing:

You cannot view this attachment.

How do I fix it?

Martin.

Aleksi "Lex" Kilpinen

That's not what is happening here, nor on my own forum. Also, you are not viewing March in that image, you are viewing January with March selected in the quick select menu.

The Arrow right in that view should have an URL like /index.php?action=calendar;viewmonth;year=2023;month=2;day=01
And as you can see, it defines the year, month and day to jump to - In this case month 2, February.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Martin Wynne

Thanks, but I don't follow?

Clicking the left arrow, the contents of that box go:

Dec 22
Nov 22
etc.

then clicking the right arrow, the contents of that box go:

Nov 22
Dec 22
Mar 23  should be Jan 23
Feb 23
Mar 23
Apr 23

Martin.

Aleksi "Lex" Kilpinen

The arrows you have circled in the image should actually skip you to the next (or previous) month completely, and the header (January in your image) should change accordingly. If the only thing changing is what is in that selection box, then something is broken, and it's not only missing months in the calendar.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Martin Wynne

#4
Thanks.

I have done some more testing.

The calendar function is working fine -- except this box, which can never show the word "Jan" for any year. It always shows "Mar" instead whenever it should show "Jan". Clicking it shows the calendar for Jan.

You cannot view this attachment.

And the same for the other box. It is incapable of ever showing "Jan" and always shows "Mar" instead.

This looks like a language look-up bug somewhere.

Is there a fix?

Thanks,

Martin.

shawnb61

What version of SMF are you running?

What do the months look like in Themes/default/languages/index.english.php?

They should look like this:
https://github.com/SimpleMachines/SMF/blob/5fb37db310448a32269480c666979c483b4b650e/Themes/default/languages/index.english.php#L28

Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Martin Wynne

Hi,

Running 2.1.3

Many thanks. I found the bug. It was actually in

 index.english_british.php

You cannot view this attachment.

Edited to 'Jan' and now working fine.

Thanks again for the URL. :)

Martin.

Advertisement: