Skip to content

Feature presidecms 3232 create helper functions for admin dateformat#1738

Open
simon-pixl8 wants to merge 4 commits intostablefrom
feature-PRESIDECMS-3232_create_helper_functions_for_admin_dateformat
Open

Feature presidecms 3232 create helper functions for admin dateformat#1738
simon-pixl8 wants to merge 4 commits intostablefrom
feature-PRESIDECMS-3232_create_helper_functions_for_admin_dateformat

Conversation

@simon-pixl8
Copy link

@simon-pixl8 simon-pixl8 commented Jan 30, 2026

Adds new helper functions for formatting dates in admin user's chosen format


Note

Low Risk
Additive formatting helpers only; risk is limited to potential display/format regressions in admin date/time output if user preferences or masks are misconfigured.

Overview
Adds admin-user-specific date/time formatting in DateFormatService, deriving masks from the admin user profile (with translated defaults) and exposing getFormattedAdminDate() / getFormattedAdminDateTime().

Exposes new helper functions in dateUtils.cfm (getAdminDateFormatMask, getFormattedAdminDate, getFormattedAdminDateTime) to make those admin-format values easily consumable across the app.

Written by Cursor Bugbot for commit d61ba8b. This will update automatically on new commits. Configure here.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions
Copy link

github-actions bot commented Jan 30, 2026

Test Results

    1 files  ±0    117 suites  ±0   2m 21s ⏱️ -11s
1 829 tests ±0  1 826 ✅ ±0  3 💤 ±0  0 ❌ ±0 
1 832 runs  ±0  1 829 ✅ ±0  3 💤 ±0  0 ❌ ±0 

Results for commit d61ba8b. ± Comparison against base commit 9a92ef6.

♻️ This comment has been updated with latest results.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

var timeFormatMask = $translateResource( uri="cms:timeFormat");

if ( IsStruct(adminUserDetails) ) {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary empty line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants