Repository navigation
FOUR-33514 | Due Date is Shown in Wrong Format - #9081
Conversation
This change adds helpers to translate PHP datetime/calendar tokens into Moment-compatible formats and applies them when loading user config and the task page user object. It prevents legacy Blade-generated format strings from being used directly by Moment and keeps date rendering consistent across the app.
PR SummaryLow Risk Overview
In Reviewed by Cursor Bugbot for commit 4283679. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
eiresendez
left a comment
There was a problem hiding this comment.
The implementation aligns with FOUR-33514. I found no correctness or backward-compatibility defect in the changed code 👍 👍
|
QA server K8S was successfully deployed https://tenant-1.ci-bcfc040339.engk8s.processmaker.net |





Issue
Ticket: FOUR-33514
On
/tasksand/inbox, datetimes render as values like7/5/2026 17:iinstead of the profile format, such as09/02/2025 11:47.This is a regression from commit
b4938316c. That commit addedresources/js/vite/tasks/loaderTasks.jsfor the Vite tasks page.setupMain()converts the profile's PHP format (m/d/Y H:i) to a Moment format (MM/DD/YYYY HH:mm) onwindow.ProcessMaker.user, but the new loader replaces that user with the Blade Eloquent user, which still has the PHP string.FilterTableBodyMixinpasses that string to Moment, which treatsias a literal, so17:07on a Friday renders as7/5/2026 17:i. Mix only wrote the raw user towindow.Processmaker.user, so the list kept the Moment format.Solution
resources/js/data/datetime_formats.jsonthroughmomentFormatsForandwithMomentDateFormatsinresources/js/next/config/user.js. Page setup uses that lookup the same way it did before.resources/js/vite/tasks/loaderTasks.js, convertwindow.temporal.userbefore assigning it towindow.ProcessMaker.userandwindow.Processmaker.user, so the task list receives Moment tokens such asMM/DD/YYYY HH:mm.How To Test
m/d/Y H:i./tasksand/inbox.09/02/2025 11:47, with leading zeros and real minutes, not7/5/2026 17:i.d/m/Y H:iand confirm dates render as02/09/2025 11:47.ci:deploy
Code Review Checklist