Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Unfortunately, Drupal doesn't offer a German time format on the admin/settings page. The attached patch adds the missing formats. This is a quick fix for 4.7/CVS HEAD, not a final solution (which won't get into 4.7; I know that).
Comment | File | Size | Author |
---|---|---|---|
#16 | system.module.revert-date.patch | 817 bytes | rstamm |
#14 | system.module.date_0.patch | 831 bytes | tenrapid |
#13 | system.module.date.patch | 831 bytes | rstamm |
#8 | date.module | 1.32 KB | killes@www.drop.org |
#3 | german_date_time_0.patch | 1.39 KB | kkaefer |
Comments
Comment #1
kkaefer CreditAttribution: kkaefer commentedForgot to attach the patch ;-)
Comment #2
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedThe absence of my preferred date format has annoyed me since Drupal 3.0 so I am likely to commit this. However, I don't like leading zeros, can we change d to j and H to G?
Comment #3
kkaefer CreditAttribution: kkaefer commentedMade the proposed changes. Leading zeros don't bother me very much, but I'm not against them.
Comment #4
Steven CreditAttribution: Steven commentedWe can't add every date format under the sun. I'd much rather prefer a more flexible option, where new date formats can be imported/added through localization, and locale-specific date formats are offered (and not just running the date format through t() because that is not a proper solution).
Comment #5
kkaefer CreditAttribution: kkaefer commentedSteven, I know that. And as I said in my first post, this is only a temporary solution for 4.7 because this will have much greater chance to get in than a new patch that adds a feature. Being able to configure the date/time freely is due for the next major Drupal version, but not for 4.7.
Comment #6
Tobias Maier CreditAttribution: Tobias Maier commented+1 for this it is realy annoying..
Comment #7
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedSteven, with your reasoning I ought to remove everything beyond yyyy-mm-dd hh:mm:ss +tz.
This particular time format is the only one which gets requested with some frequency. Your solution would maybe be better, but it isn't here yet.
Comment #8
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedAs an alternative, here's a small module that replaces the standard selection with form fields which allow freeform definition of date formats.
Comment #9
simeMany thanks killes. I installed your date.module and it works great for me as an alternative.
Comment #10
kkaefer CreditAttribution: kkaefer commentedAah, right! Praise the power of the new forms api! I'd change the description though to give a hint on PHP's date format page: http://php.net/date
Comment #11
drumm-1 for a module. Lets actually fix this for 4.8.
Comment #12
drummComitted to HEAD.
Comment #13
rstamm CreditAttribution: rstamm commentedmonth of short format should be without leading zeros too.
2.04.2006 is not a german date format.
Comment #14
tenrapid CreditAttribution: tenrapid commentedI think the short format should have leading zeros for day, month, hour and minutes. It is mostly used in tabular listings and there it is better to read if all dates have the same width.
Comment #15
drummI reverted the changed date short format.
Comment #16
rstamm CreditAttribution: rstamm commentedSorry, but a short format is twice now.
Comment #17
Steven CreditAttribution: Steven commentedCommitted to HEAD.
Comment #18
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedI added the short Germand date format with leading zeros.
Comment #19
(not verified) CreditAttribution: commented