-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Improved date format in js console: switch from 12 hour to 24 hour fo… #38972
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
Improved date format in js console: switch from 12 hour to 24 hour fo… #38972
Conversation
…rmat and adding timezone at the end.
|
Hi @hostep. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
|
@magento run all tests |
|
@magento create issue |
|
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE |
|
@magento run Functional Tests B2B |
|
The Functional B2B test failures are different in recent 2 successive builds. They neither part of PR nor failing because of the PR changes, hence moving it to Merge in Progress. Run 1: Run 2:
|
|
@magento run all tests |





…rmat and adding timezone at the end.
Description (*)
When an error message is outputted to the js console, it displays a timestamp in front of it.

For example:
One of the problems I'm noticing with this, is that it shows the time in 12 hour format, which means that if you work in the evening, it will look like a time in the morning. I know this is an European thing, but even in the USA, there was no am/pm output, so over there you also have no idea if the time was before or after the noon.
Also additionally, I think it's useful to also add the timezone to this timestamp. In case you have some visitor taking screenshots of the console, you have some idea of when exactly the problem happened, and having the correct timezone will help with that.
Related Pull Requests
N/A
Fixed Issues (if relevant)
N/A
Manual testing scenarios (*)
app/code/Magento/Checkout/view/frontend/web/js/view/summary/abstract-total.jsand add this problematic line:Before the changes, it outputs something like:
[2024-07-24 07:43:24]After the changes, it outputs something like:
[2024-07-24 19:43:24+02:00]Questions or comments
Contribution checklist (*)
Resolved issues: