-
October 25th, 2021, 14:35 #1
CoreRPG Calendar Date Display Issue
In the calendar code, there is a bug on displaying the date for the 11th, 12th, and 13th of each month. In the output text, the 11th is output as 11st, the 12th is output as 12nd, and the 13th is output as 13rd.
This can be replicated using a new CoreRPG campaign with no extensions loaded, and the standard gregorian calendar selected. Select any 11th, 12th, or 13th and output the date.
The reason for this is that the CalendarManager.getDateString() function is only using an (nDay % 10) to determine the last digit. This works for the 1st, 21st, and 31st of a month, but it does not work for the 11th.
Code:local sSuffix = Interface.getString("message_calendardaysuffix" .. (nDay % 10)); local sDay = tostring(nDay) .. (sSuffix or "");
For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e
-
October 25th, 2021, 15:40 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,557
Thanks. I'll get that in the next beta push for CoreRPG in the Test channel.
Regards,
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks