Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Sep 20, 2010

  1. Rodney Rehm

    performance-tweaks, multiple languages (strings), time deviance

    sorry for moving everything around and thereby obfuscating the actual changes…
    
    1) allow multiple languages per instance. any matching element can select its preferred strings-set via a class (e.g. timeago-language-since). #enhancement
    2) avoid multiple timeouts for automatic refreshes  #memleak
    3) allow for a time-deviance (read: server/client diff, for misconfigured clients) #enhancement
    4) avoid function-in-function-declaration #memleak
    5) move all functions to $.timeago, since there's no actual need for those "privates" #beingcrazyandall
    6) added support for $.timeago( Number ) #enhancement
    7) the parser's /\.\d\d\d+/ should be /\.\d{3,}/ #beingcrazyandall
    
    ===== some notes on (1) =====
    In a few places I needed to print "since blalba" instead of "blabla ago". Setup:
    $.timeago.settings.strings.foobar = $.extend( {}, $.timeago.settings.strings, { prefixAgo: 'since', suffixAgo: '' } );
    <span class="timeago timeago-language-foobar"></span> and $.timeago( new Date(), 'foobar' ) will print the former, <span class="timeago"></span> and $.timeago( new Date() ) the latter.
    
    ===== some notes on (2) =====
    On heavy AJAX pages (read: not single-page-calls) those accumulated intervals (running for nothing, if the original nodes have been removed already) consume resources for nothing.
    
    ===== some notes on (3) =====
    Many users (mostly featuring old OS without NTP) don't even notice their wrong time settings and will tell you that your website is broken. To circumvent this, my servers output the current time, so the client can calculate its offset:
    
    $.timeago.settings.deviance = (new Date()).getTime() - $.timeago.parse( comingFromTheServer ).getTime();
    // depending on the loading time of the page there WILL be a difference. make the safety-threshold a minute
    if( $.timeago.settings.deviance > 0 && $.timeago.settings.deviance < 60000 )
      $.timeago.settings.deviance = 0;
    authored

Sep 15, 2010

  1. Ryan McGeary

    Version bump 0.9.2

    rmm5t authored
  2. Ryan McGeary

    Now passing the distance in milliseconds to the i18n function [Closes #8

    ]
    rmm5t authored

Aug 30, 2010

  1. Ryan McGeary

    Version bump 0.9.1

    rmm5t authored
  2. Ryan McGeary

    Upped qunit

    rmm5t authored
  3. Ryan McGeary

    Added test for microsecond support

    rmm5t authored
  4. Maximillian Dornseif

    fix for micro second precision timestamps

    timeago is now able to parse timestamps wth micro-second precision.
    Before timestamps like "2010-08-29 09:24:52.556066Z" resutled in an
    parsing error / invalid datetime object.
    mdornseif authored rmm5t committed

Jun 22, 2010

  1. Ryan McGeary

    Missing <html> tag on test page

    rmm5t authored
  2. Ryan McGeary

    HTML 5 doctype on documentation

    rmm5t authored

Jun 21, 2010

  1. Ryan McGeary

    More explicit use of git pushing in `rake publish`

    rmm5t authored
  2. Ryan McGeary

    Version bump 0.9

    rmm5t authored
  3. Ryan McGeary

    Added support for milliseconds in ISO 8601 timestamps [Closes #13]

    rmm5t authored

Feb 28, 2010

  1. Ryan McGeary

    Added support for using words instead of figures for a range of numbers

    * The intention is to give the ability to support words instead of figures for numbers up to ten.
    * Credit goes to Nick Zadrozny (nzadrozny) for the idea
    rmm5t authored
  2. Ryan McGeary

    Removed deprecated 'ago' and 'fromNow' i18n strings

    rmm5t authored

Feb 17, 2010

  1. Ryan McGeary

    Base tests and demo upon jQuery 1.4.2

    rmm5t authored

Feb 16, 2010

  1. Ryan McGeary

    Version bump 0.8.2

    rmm5t authored
  2. Ryan McGeary

    Bug fix while checking for undefined attached data

    rmm5t authored

Jan 27, 2010

  1. Ryan McGeary

    I'm anal retentive about consistent use of double quotes

    rmm5t authored
  2. Ryan McGeary

    Fixed test for the new aggressive date parsing in Firefox 3.6

    rmm5t authored

Jan 15, 2010

  1. Ryan McGeary

    Upped to jQuery 1.4

    rmm5t authored

Jan 04, 2010

  1. Ryan McGeary

    Version bump 0.8.1

    rmm5t authored
  2. Ryan McGeary

    Fix for `time` tag in HTML 5 `time` when using IE <8 [treyp]

    rmm5t authored

Jan 03, 2010

  1. Ryan McGeary

    copyright year

    rmm5t authored

Nov 01, 2009

  1. Ryan McGeary

    Updated README to explain how the title attribute is updated

    rmm5t authored

Oct 31, 2009

  1. Ryan McGeary

    Updated docs to explain how the title attribute is updated

    rmm5t authored

Oct 26, 2009

  1. Ryan McGeary

    Additional docs on time tag support (HTML5)

    rmm5t authored
  2. Ryan McGeary

    Version bump to 0.8.0

    rmm5t authored
  3. Ryan McGeary

    Store the datetime as a jQuery data object instead of re-parsing on e…

    …very refresh
    rmm5t authored

Oct 25, 2009

  1. Ryan McGeary

    Added tests for HTML5 <time> element support

    rmm5t authored
  2. Mark Gibson

    Added partial support for HTML5 <time> element - only handles 'dateti…

    …me' attr.
    jollytoad authored rmm5t committed

Aug 15, 2009

  1. Ryan McGeary

    Cleanup of tests and docs

    rmm5t authored

Jul 30, 2009

  1. Ryan McGeary

    Version bump to v0.7.2

    rmm5t authored
  2. Ryan McGeary

    Renamed test/test.html to test/index.html

    rmm5t authored
  3. Ryan McGeary

    Fixed `rake test`

    rmm5t authored
  4. Ryan McGeary

    Fixed tests to work while running under different browser time zones

    rmm5t authored
Something went wrong with that request. Please try again.