Closed (fixed)
Project:
Date
Version:
7.x-2.x-dev
Component:
Date Field
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2012 at 03:48 UTC
Updated:
14 Apr 2012 at 08:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
karens commentedThis is a way, but there was some broken code keeping it from working right.
http://drupalcode.org/project/date.git/commit/1a7dd41
Comment #3
snufkin commentedIt would be really useful if the module would offer an extra option for this out of the box, otherwise I would have to create a contrib module duplicating a lot of the formatter code, because there is no other way to overwrite it unfortunately.
Attaching a patch that adds an extra settings option to the formatter and depending on that boolean appends the 'ago' bit, or not.
Comment #5
snufkin commentedFixed a silly syntax error and actually tested it.
Comment #6
arlinsandbulte commentedCode style: incorrect indentation.
Comment #7
snufkin commentedNasty tabs, sneaking up on innocent developers.
Comment #8
karens commentedI'll see you and I'll raise you one. I switched this around so it has all the same options that Views uses for the format_interval display. That way all the options (and translations) will be the same.
http://drupalcode.org/project/date.git/commit/cf89e5f