Feature presidecms 3232 create helper functions for admin dateformat#1738
Feature presidecms 3232 create helper functions for admin dateformat#1738simon-pixl8 wants to merge 4 commits intostablefrom
Conversation
|
|
There was a problem hiding this comment.
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) ) { | ||
|
|
There was a problem hiding this comment.
Unnecessary empty line
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 exposinggetFormattedAdminDate()/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.