-
-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make date display consistently across manager components #16604
base: 3.x
Are you sure you want to change the base?
Conversation
Adds a new centralized formatting class for datetime data, adjusting various classes to make use of the new formatters.
Applied formatter to system settings processor and made a few other corrections to previously-committed code.
Should have included this with the last commit
Include empty date display value in early return
Applies formatter to this object type
(Finding areas I'd missed updating in earlier commits)
19f9c2f
to
e54102d
Compare
@smg6511 In general I like the proposed idea, but I didn't like the implementation much, it seemed a bit complicated. Can you please check an updated version I pushed to my repo: theboxer@4133e16 and let me know your thoughts? The key changes would be:
|
@theboxer Thanks for going through it so thoroughly! I took an initial look and like what you did structure-wise. (I do sometimes try to do too much in some methods!) I do need to understand better how the use and implementation of services works. Anyway, let me pull this down and go over it more closely in the next few days or so. The one thing I see that I will probably argue is your reversion to Be back soon... |
I'm fine with using the |
@theboxer - Quick question: I've not pulled down a fork of a fork before; what's the best way of going about that? To this point I've used Github Desktop for all things modx git, but realize this may require some command line actions. |
@smg6511 — You should be able to add the fork as a new remote in your existing repository. I imagine GH Desktop has a feature for adding a remote? |
Ok, so basically fork John's revo repo is what you're suggesting, right? |
No, you just add his fork as a remote to your local git repo. |
What does it do?
Why is it needed?
The manager UI is inconsistent in its formatting of dates and times. This PR consolidates the formatting logic in one place and applies it to every component that displays a date (unless I've overlooked something).
How to test
/_build/transport.core.php
) then a reinstall (upgrade) via/setup
.manager_date_format
andmanager_time_format
, as well as amanager_datetime_separator
in the system settings.Related issue(s)/PR(s)
Resolves #14961.
Resolves #16512.