Closed (works as designed)
Project:
Drupal core
Version:
9.2.x-dev
Component:
datetime.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Oct 2016 at 06:26 UTC
Updated:
8 Nov 2020 at 06:17 UTC
Jump to comment: Most recent
Comments
Comment #2
joshi.rohit100Comment #3
mpdonadioHave you tried adding your own `#process` function to the element to update the labels on the options?
Comment #4
joshi.rohit100@mpdonadio - No! I haven't tried #process but what i found is that -
$format = in_array('ampm', $element['#date_part_order']) ? 'g' : 'G';So it will always be (i guess) same.Comment #5
mpdonadio#4, would need to debug it, but I suspect that if you just change the labels and not the values, then everything will still work. It's worth a quick try if you can.
Comment #7
mpdonadioIs this still an issue that can't be fixed by #process or another render hook?
Comment #13
pameeela commentedThanks for reporting this issue. We rely on issue reports like this one to resolve bugs and improve Drupal core.
As part of the Bug Smash Initiative, we are triaging issues that are marked "Postponed (maintainer needs more info)".
joshi.rohit100 noted this is likely a feature request and I agree, but I'm not 100% sure what the feature is that is being requested.
Moving to feature request but @joshi.rohit100 can you provide a bit more information about the feature you are after?
Comment #14
pameeela commentedComment #16
pameeela commentedClosing since no further info has been provided.