Opened 7 years ago

Closed 4 years ago

Last modified 4 years ago

#9826 closed (wontfix)

timesince/timeuntil output should include seconds

Reported by: clay Owned by: nobody
Component: Template system Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

A minute is a mighty long time.

Change History (4)

comment:1 Changed 7 years ago by ElliottM

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

This would crate a backwards incompatibility for anyone using it and expecting the output in a certain format, unfortunately.

comment:2 Changed 4 years ago by alper

  • Component changed from Uncategorized to Template system
  • Resolution wontfix deleted
  • Status changed from closed to reopened

So, ok. Create two new filters called timeuntilsec and timesincesec because otherwise everybody needs to roll their own.

comment:3 Changed 4 years ago by russellm

  • Resolution set to wontfix
  • Status changed from reopened to closed

To paraphrase Einstein: A minute is a long time if your hand is in a fire. It's a very short time if you're talking to a pretty girl. It's all relative :-)

This isn't an area where we need a proliferation of template tags. To me, minute level granularity seems an appropriate level of precision for a wide range of applications, and the fact that this is the first (to my memory) request for this to be changed supports that assertion.

It's not a case of "everyone" needs to roll their own -- only people who want second-level granularity have to roll their own. I'm happy to put this in the basket of things requiring local customization.

comment:4 Changed 4 years ago by alper

Ok, I understand. For the future maybe a string format parameter to timeuntil so people can custom format the timedelta? Eg. |timeuntil:"%m minuten en %s seconden" ?

Note: See TracTickets for help on using tickets.
Back to Top