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.
When you have a date field in your profile (I have date of birth), you enter year, month and day, e.g. [1975] [06] [21]. But when you view a user's profile with the date completed, it is displayed as '1975-06-21 H:i'. The H:i shouldn't be there.
Kobus
Comment | File | Size | Author |
---|---|---|---|
#9 | profile-470-patch_0.diff | 590 bytes | oadaeh |
#4 | profile-470-patch.diff | 669 bytes | Kobus |
#1 | profile_short-date.patch | 835 bytes | tostinni |
Comments
Comment #1
tostinni CreditAttribution: tostinni commentedThis is a long know problem with Drupal, there's no short date only format...
Btw, I went through a very simple patch to strip out the hour from this format.
Comment #2
Kobus CreditAttribution: Kobus commentedI have tested this code and it works 100% on Drupal 4.6. I will see if I have similar problems on 4.7 or whether this patch still applies.
Comment #3
Dries CreditAttribution: Dries commentedDoes not apply against HEAD.
Comment #4
Kobus CreditAttribution: Kobus commentedPatch attached against 4.7 beta 3.
Regards,
Kobus
Comment #5
oadaeh CreditAttribution: oadaeh commentedThis patch worked fine for me (after I stripped the path information) and fixed the problem on a CVS tar file I downloaded 28-ish hours ago.
Also, this bug is a duplicate of this one:
http://drupal.org/node/41181
Comment #6
Kobus CreditAttribution: Kobus commentedThanks for the test, Oadae, but mine is not the duplicate ;-) Mine is the oldest of the two :-) *chuckle*.
I can't for the life of me figure out how to re-roll the patch without the path information. I am using gnuwin32 patch-utils and diff-utils. Anybody can help with this?
Kobus
Comment #7
oadaeh CreditAttribution: oadaeh commentedI can fix the patch for you later this evening, if no one else does it first.
Also, I think I must have been looking at the date of the last comment, which is why I thought this one was newer.
Comment #8
tostinni CreditAttribution: tostinni commentedWhat's wrong with kobus path information ?
In fact I don't understand why patch didn't apply against 4.7beta3 as there were no change in the code ?
Dries can you explain what's wrong ?
Short date format still exists in system.module and still have time inside ?
Comment #9
oadaeh CreditAttribution: oadaeh commentedOkay, here's my modification of Kobus' patch. The paths and extra carriage returns are stripped, but everything else should be as it was.
Comment #10
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #11
Kobus CreditAttribution: Kobus commentedThanks! Closing...