Replace use of formatDate with localDateFormat
requested to merge gitlab-community/gitlab:463487-audit-date-format-usage-in-app-assets-javascripts-admin-broadcast_messages-components into master
What does this MR do and why?
Replaces use of formatDate with localDateFormat so that data is shown as per user preference
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After | |
---|---|---|
messages_table.vue | ||
deploy_freeze_alert.vue |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
messages_table.vue
- Go to Admin > Messages (http://127.0.0.1:3000/admin/broadcast_messages)
- Add new message is there are none displayed
deploy_freeze_alert.vue
- In a project's CI/CD settings (Settings > CI/CD) create a deploy freeze (https://docs.gitlab.com/ee/user/project/releases/index.html#prevent-unintentional-releases-by-setting-a-deploy-freeze)
- Can set both start and end as "* * * * *"
- Create an environment in that project (Operate > Environments)
- See the alert
Related to #463487 (closed)
Edited by James Rushford