Needs work
Project:
Drupal core
Version:
main
Component:
views.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2013 at 08:33 UTC
Updated:
10 Feb 2024 at 16:17 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kalman.hosszu commentedHi,
the patch is attached. Please review it
Cheers,
Kalman
Comment #2
Anonymous (not verified) commentedi have tested your patch, all functionality is OK, i only noticed some minor language usage issues:
+ 'today time ago' => t('Time ago (with "ago" appended) for today date, but not for other dates'),should be today's date
+ '#description' => t('If "Custom" selected in "Second date format", see the <a href="@url" target="_blank">PHP manual</a> for date formats. Otherwise, enter the number of different time units to display, which defaults to 2.', array('@url' => 'http://php.net/manual/function.date.php')),should be If "Custom" is selected for "Second date format"
Comment #3
kalman.hosszu commentedThanks dekztah, I fixed the patch based on your remarks.
Comment #4
k.dani commentedThe patch in comment #3 works as it should for me...thanks for it.
Comment #5
dawehnerShouldn't we extend the test coverage for that? I know we have simple test coverage for date fields, so please let's extend it here,
just to be able to sleep better.
Comment #6
kalman.hosszu commentedI modified the patch with the test. Please review it!
Comment #8
kalman.hosszu commentedNew data row is moved to ViewsHandlerFieldDateTest class.
Comment #9
kalman.hosszu commented#8: 1905132-8.patch queued for re-testing.
Comment #10
k.dani commentedI tested it and it worked like a charm.
Comment #11
kalman.hosszu commented#8: 1905132-8.patch queued for re-testing.
Comment #12
kalman.hosszu commented@dawehner Need I do anything else to commit this feature request?
Comment #13
kalman.hosszu commented8: 1905132-8.patch queued for re-testing.
Comment #14
dawehnerCommitted and pushed. Thank you!
Comment #17
catchComment #26
tonytheferg commentedWould love to see this get ported!
Comment #27
tonytheferg commentedquick patch port for 9.4.x, no tests, but I can get to it.
Comment #28
tonytheferg commentedWould like to get some direction from core maintainers on what they would want to see here.
Comment #29
tonytheferg commentedCleaner. Still needs tests added.
Comment #30
tonytheferg commentedHere is a patch that adds the tests.
Comment #31
tonytheferg commentedaccidently added a couple of extra lines in the test port. Maybe someone can take it from here. :)
Comment #32
tonytheferg commentedBlah. missed a short array syntax.
Also, I see now that the current tests already have dataset() so not sure how to merge this hunk from 7:
Left the duplicate in for now, but I can't imagine this will pass tests. 😂
Comment #34
tonytheferg commentedNeeds schema, and dataSet() fixed
Comment #37
tonytheferg commentedneeds reroll for 10.2.3