≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Feature request #1210

Feature request #1210: Write JavaScript for dynamic "relativization" of displayed dates

Kind feature request
Product wincent.dev
When Created 2009-01-26T16:03:22Z, updated 2009-02-03T05:41:59Z
Status closed
Reporter Greg Hurrell
Tags no tags

Description

Many pages on the site currently can't be page cached because they display dates with formats like "2 days ago". If such a page were cached then the date information could easily go out of sync with reality.

One "solution" is to throw the baby out with the bath water and turn off relative date disable so as to be able to enable page caching.

Another more elegant one might be to use JavaScript to dynamically turn absolute dates into relative ones on the fly. In this way page caching could be turned on and I could make my pages a lot more complex and packed with information without worrying so much about the number of queries on the database.

Comments

  1. Greg Hurrell 2009-01-26T16:03:27Z

    Status changed:

    • From: New
    • To: Open
  2. Greg Hurrell 2009-01-26T16:08:35Z

    Looks like I am not the only one who has thought of this idea:

    • http://wonderfullyflawed.com/2008/05/16/javascript-relative-dates/
    • http://ozimodo.rubyforge.org/changes.html
  3. Greg Hurrell 2009-02-03T05:41:53Z

    Ok, this is now done. Will be included in the next deployment.

  4. Greg Hurrell 2009-02-03T05:41:59Z

    Status changed:

    • From: Open
    • To: Closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets