News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

SMF 2.1.6 Calendar events -problem with events created for January dates

Started by rockyr1156, July 07, 2025, 05:28:54 AM

Previous topic - Next topic

rockyr1156

SMF 2.1.6 Calendar events - problem with events created for January dates automatically changed to March as the month. e.g. I set 24/01/2026 and it is automatically changed to 24/03/2026. It does this for any year and only in January.

Has anyone got a solution to fix this?

Steve

Kindred

Can not replicate the issue.

1- go to calendar
2- add event
3- add event name
4- add event date (set to 24-January-2026)
5- a- add link to post
   b- without link to post
(if 5a, then create post as normal)
click submit


expected results: event created with date 24-January-2026
actual results: event created with date 24-January-2026
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

rockyr1156

Quote from: Kindred on July 07, 2025, 07:59:08 AMCan not replicate the issue.

1- go to calendar
2- add event
3- add event name
4- add event date (set to 24-January-2026)
5- a- add link to post
   b- without link to post
(if 5a, then create post as normal)
click submit


expected results: event created with date 24-January-2026
actual results: event created with date 24-January-2026

I did everything on your list; however, when I click on the date 24-January-2026 it fills the Start field with 24 Mar, 2026. This has been reported to me by several of my forum members and when I tried the same error occurred.

Aleksi "Lex" Kilpinen

Check Themes/default/languages/index.{LANG}.php

I seem to remember there was some issue with some language packs where this was wrong, so it might simply be the name of the month that is wrong, not the actual month.

Months:
https://github.com/SimpleMachines/SMF/blob/release-2.1/Themes/default/languages/index.english.php#L28
And a couple of rows past it for different version of the names.

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

shawnb61

What is the default language for the forum?

The default date format?
A question worth asking is born in experience & driven by necessity. - Fripp


rockyr1156

Quote from: Aleksi "Lex" Kilpinen on July 07, 2025, 12:18:14 PMCheck Themes/default/languages/index.{LANG}.php

I seem to remember there was some issue with some language packs where this was wrong, so it might simply be the name of the month that is wrong, not the actual month.

Months:
hxxp:github.com/SimpleMachines/SMF/blob/release-2.1/Themes/default/languages/index.english.php#L28 [nonactive]
And a couple of rows past it for different version of the names.



Thank you, I found the error in index.english_british.php. All it was, instead of saying 'Jan', it said 'Mar'. A simple

$txt['months_short'] = array(1 => 'Mar', 2 => 'Feb', 3 => 'Mar', 4 => 'Apr', 5 => 'May', 6 => 'Jun', 7 => 'Jul', 8 => 'Aug', 9 => 'Sep', 10 => 'Oct', 11 => 'Nov', 12 => 'Dec');

I changed it to:

$txt['months_short'] = array(1 => 'Jan', 2 => 'Feb', 3 => 'Mar', 4 => 'Apr', 5 => 'May', 6 => 'Jun', 7 => 'Jul', 8 => 'Aug', 9 => 'Sep', 10 => 'Oct', 11 => 'Nov', 12 => 'Dec');

shawnb61

A note:  This is, in fact, an issue with the language packs for english_british & english_pirate.

I went in & changed those two.  I think.
A question worth asking is born in experience & driven by necessity. - Fripp

Advertisement: