GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — InputDateTimePicker ignores controlProps.ampm: false — picker popup shows AM/PM in 12-hour locales despite a 24-hour request · Issue #10584 · pgadmin-org/pgadmin4 Closed Labels DescriptionDescribe the bug InputDateTimePicker (and FormInputDateTimePicker) in web/pgadmin/static/js/components/FormComponents.jsx accepts controlProps.ampm to choose between 12-hour and 24-hour time. When a caller explicitly passes controlProps={{ ampm: false }} to request 24-hour time, the setting is honored for the text field format but not for the picker popup's time columns. The cause is a truthiness check that collapses an explicit false to undefined: // web/pgadmin/static/js/components/FormComponents.jsx (~line 340) To Reproduce Steps to reproduce the behavior: Render an InputDateTimePicker (or FormInputDateTimePicker) with controlProps={{ ampm: false }} in a browser/OS using a 12-hour locale (e.g. English (United States)). With controlProps={{ ampm: false }}, the picker popup should also use 24-hour time (no AM/PM column), consistent with the 24-hour text field — regardless of the browser/OS locale. Error message None — no error is thrown; the time selector silently renders in the wrong (12-hour) mode. Screenshots (Attach if filing: the opened date-time picker popup showing an AM/PM column while the input field shows 24-hour text.) Desktop (please complete the following information): OS: [e.g. macOS Sequoia / Windows 11] File/line: web/pgadmin/static/js/components/FormComponents.jsx, in the commonProps object (~line 340): ampm: controlProps.ampm ? controlProps.ampm : undefined. Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |