{"data":{"id":"magento2-38972","source":"github-pr","sourceRef":"magento/magento2#38972","title":"Improved date format in js console: switch from 12 hour to 24 hour fo…","pr":{"number":38972,"url":"https://github.com/magento/magento2/pull/38972","author":"hostep","mergedAt":"2024-12-04T17:58:38Z","mergeCommit":"daaa4b3fa4d1cd6ea1e770d0080db3dfd91d6e6f","headCommit":"2fc5ca5d62b142d56ab9f8a38668ef1dc978e72d","baseRef":"2.4-develop","diffSha256":"14ceb76d07745f0d868702ef55b881df7b1a1a9751d1dbe9a9868ff2643478ff"},"issues":[{"number":38983,"url":"https://github.com/magento/magento2/issues/38983","title":"[Issue] Improved date format in js console: switch from 12 hour to 24 hour fo…","labels":["Area: UI Framework","Component: UiComponents","Issue: Confirmed","Priority: P2","Progress: done","Reported on 2.4.x","Reproduced on 2.4.x","Triage: Dev.Experience"],"kind":"pr-derived"}],"fixedIn":"2.4.8","containingTags":["2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5","2.4.9"],"reportedOn":null,"codeMatch":{"2.4.6":"clean","2.4.6-p1":"clean","2.4.6-p2":"clean","2.4.6-p3":"clean","2.4.6-p4":"clean","2.4.6-p5":"clean","2.4.6-p6":"clean","2.4.6-p7":"clean","2.4.6-p8":"clean","2.4.6-p9":"clean","2.4.6-p10":"clean","2.4.6-p11":"clean","2.4.6-p12":"clean","2.4.6-p13":"clean","2.4.6-p14":"clean","2.4.6-p15":"clean","2.4.7":"clean","2.4.7-p1":"clean","2.4.7-p2":"clean","2.4.7-p3":"clean","2.4.7-p4":"clean","2.4.7-p5":"clean","2.4.7-p6":"clean","2.4.7-p7":"clean","2.4.7-p8":"clean","2.4.7-p9":"clean","2.4.7-p10":"clean","2.4.8":"conflict","2.4.8-p1":"conflict","2.4.8-p2":"conflict","2.4.8-p3":"conflict","2.4.8-p4":"conflict","2.4.8-p5":"conflict","2.4.9":"conflict"},"affectedVersions":["2.4.6","2.4.6-p1","2.4.6-p2","2.4.6-p3","2.4.6-p4","2.4.6-p5","2.4.6-p6","2.4.6-p7","2.4.6-p8","2.4.6-p9","2.4.6-p10","2.4.6-p11","2.4.6-p12","2.4.6-p13","2.4.6-p14","2.4.6-p15","2.4.7","2.4.7-p1","2.4.7-p2","2.4.7-p3","2.4.7-p4","2.4.7-p5","2.4.7-p6","2.4.7-p7","2.4.7-p8","2.4.7-p9","2.4.7-p10"],"components":["magento/module-ui"],"files":[{"path":"app/code/Magento/Ui/view/base/web/js/lib/logger/formatter.js","change":"modified","package":"magento/module-ui"}],"stripped":{"tests":["dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/lib/logger/formatter.test.js"],"docs":[],"outsideCode":[]},"linesChanged":2,"mergeBatched":false,"excluded":null,"sections":{"description":"When an error message is outputted to the js console, it displays a timestamp in front of it.\nFor example:\n<img width=\"816\" alt=\"Screenshot 2024-07-24 at 19 44 48\" src=\"https://github.com/user-attachments/assets/f1d3555c-75ed-411d-8c75-c3f4c3524dd8\">","stepsToReproduce":"1. Wait until after the noon\n2. Manually introduce a bug in the code: open the file `app/code/Magento/Checkout/view/frontend/web/js/view/summary/abstract-total.js` and add this problematic line:\n```diff\n--- a/app/code/Magento/Checkout/view/frontend/web/js/view/summary/abstract-total.js\n+++ b/app/code/Magento/Checkout/view/frontend/web/js/view/summary/abstract-total.js\n@@ -13,6 +13,8 @@ define([\n     'use strict';\n\n     return Component.extend({\n+        problem: window.unexistingProp.unexistingProp,\n+\n         /**\n          * @param {*} price\n          * @return {*|String}\n```\n3. Have a Magento shop setup with at least one saleable product in the database\n4. On the frontend, put the product in your cart and go to the checkout\n5. Look at your browsers inspector\n\nBefore the changes, it outputs something like: `[2024-07-24 07:43:24]`\nAfter the changes, it outputs something like: `[2024-07-24 19:43:24+02:00]`","expectedResult":null,"actualResult":null,"source":"pr"},"signatures":[],"labels":{"area":["UI Framework"],"component":["UiComponents"],"priority":"P2","severity":null,"reportedOn":["2.4.x"]},"categories":[],"triage":{"model":"@cf/cloudflare/clef","requestHash":"0c99ada2e49bb618ba8a1f036aa523bb3a37418b5471c3c61e2c480e4293a57e","isBugfix":0.3595,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.6256,"feature":0.2353,"refactor":0.0891,"tests_only":0.0284,"docs_only":0.0114,"dependency":0.0102},"confidence":0.3469},"scope":{"score":0.5005,"probabilities":{"0":0.5904,"1":0.3187,"2":0.0909},"confidence":0.1876},"risk":{"score":0.2784,"probabilities":{"0":0.7443,"1":0.233,"2":0.0227},"confidence":0.4132},"area":{"choice":"frontend","probabilities":{"catalog":0.0099,"checkout":0.0271,"customer":0.0083,"admin":0.0522,"graphql_api":0.0074,"framework":0.3161,"frontend":0.5211,"other":0.0579},"confidence":0.2898},"securityRelevant":0.0071,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0036,"2.4.0-p1":0.0036,"2.4.1":0.0033,"2.4.1-p1":0.0033,"2.4.2":0.0042,"2.4.2-p1":0.0044,"2.4.2-p2":0.005,"2.4.3":0.0078,"2.4.3-p1":0.0088,"2.4.3-p2":0.008,"2.4.3-p3":0.006,"2.4.4":0.0082,"2.4.4-p1":0.0047,"2.4.4-p10":0.0048,"2.4.4-p11":0.006,"2.4.4-p12":0.0054,"2.4.4-p13":0.0057,"2.4.4-p14":0.0064,"2.4.4-p15":0.0044,"2.4.4-p16":0.0058,"2.4.4-p17":0.0045,"2.4.4-p18":0.0044,"2.4.4-p2":0.0022,"2.4.4-p3":0.0025,"2.4.4-p4":0.0028,"2.4.4-p5":0.0032,"2.4.4-p6":0.0037,"2.4.4-p7":0.0035,"2.4.4-p8":0.0039,"2.4.4-p9":0.0031,"2.4.5":0.0092,"2.4.5-p1":0.0063,"2.4.5-p10":0.0057,"2.4.5-p11":0.0108,"2.4.5-p12":0.0082,"2.4.5-p13":0.0084,"2.4.5-p14":0.0081,"2.4.5-p15":0.0064,"2.4.5-p16":0.0094,"2.4.5-p17":0.0074,"2.4.5-p2":0.0029,"2.4.5-p3":0.0047,"2.4.5-p4":0.0053,"2.4.5-p5":0.0045,"2.4.5-p6":0.0055,"2.4.5-p7":0.0049,"2.4.5-p8":0.0044,"2.4.5-p9":0.0042,"2.4.6":0.0317,"2.4.6-p1":0.0253,"2.4.6-p10":0.0099,"2.4.6-p11":0.0148,"2.4.6-p12":0.0148,"2.4.6-p13":0.0112,"2.4.6-p14":0.0126,"2.4.6-p15":0.0096,"2.4.6-p2":0.0039,"2.4.6-p3":0.0072,"2.4.6-p4":0.0068,"2.4.6-p5":0.0066,"2.4.6-p6":0.0095,"2.4.6-p7":0.0088,"2.4.6-p8":0.0073,"2.4.6-p9":0.0063,"2.4.7":0.0314,"2.4.7-p1":0.0234,"2.4.7-p10":0.0106,"2.4.7-p2":0.0084,"2.4.7-p3":0.0158,"2.4.7-p4":0.0185,"2.4.7-p5":0.0135,"2.4.7-p6":0.017,"2.4.7-p7":0.0196,"2.4.7-p8":0.0132,"2.4.7-p9":0.008,"2.4.8":0.0504,"2.4.8-p1":0.0328,"2.4.8-p2":0.0273,"2.4.8-p3":0.0227,"2.4.8-p4":0.0196,"2.4.8-p5":0.0156,"2.4.9":0.0263,"unspecified":0.1801},"confidence":0.035},"backportWorthy":{"score":0.6832,"probabilities":{"0":0.513,"1":0.2907,"2":0.1963},"confidence":0.0794}},"curated":{"title":"Changes the JS console log timestamp to 24 hour format with timezone","description":"When an error message is outputted to the JS console, its timestamp shows the time in 12 hour format, so an evening time can look like a time in the morning. The dateFormat_ in the Ui logger formatter.js now uses 24 hour format and adds the timezone at the end, for example [2024-07-24 19:43:24+02:00].","categories":[],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-38972 details"}