Skip to Content Skip to Menu

Handling Shamsi (Jalali) dates in CommunityBuilder profiles and integrations

14 hours 7 minutes ago #342671 by sarah-navin
Hello CommunityBuilder team and community,I’m working on a Joomla site that targets Persian-speaking users, where displaying dates in the Shamsi (Jalali) calendar is a strong usability requirement—especially for profile fields such as birth date, registration date, and custom CB date fields.In CommunityBuilder, what is the recommended or cleanest approach to:
  • Store dates in a standard (Gregorian / Unix) format
  • Display them consistently in Jalali (Shamsi) format across profiles, lists, and plugins
  • Avoid issues with filtering, sorting, or form validation when using localized calendars
I’m also involved in a WordPress project where we faced a similar challenge in a multi-vendor environment (Dokan), and in that ecosystem there are dedicated solutions like Pmpr Shamsi Date for Dokan that handle Jalali dates at both UI and logic levels.That comparison made me curious whether, in the Joomla + CommunityBuilder world, best practice is to rely on:
  • CB custom field formatting hooks
  • Joomla language/date overrides
  • A third-party Jalali library or plugin
  • Or keeping everything Gregorian internally and only converting at the view layer
I’d really appreciate hearing how experienced CB developers approach Jalali/Shamsi date support in production sites, especially when profiles interact with other extensions or custom code.Thanks in advance for your insights.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum