5E Product Walkthrough Playlist
  1. #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

  2. #2
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in