Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 2, 2013
Commits on Sep 14, 2012
  1. @Krinkle

    2012 Rewrite: v1.1.0pre

    Krinkle authored
    New:
    * New parser, made as public API ($.prettyDate.parse).
    * Timezones fully supported as supported by ES5 Date.parse and
      ISO 8601.
    * Recognition of (+ unit tests)
     - 1 week
     - 1 month
     - # months
     - 1 year
     - # years
       I've taken months and years with a low-end margin (since days
       in a month/year varies). Also use a 2-week buffer between
       the date and the 1+ next year. So if something is 1 year and 2
       weeks ago, it shows 1 year not 2 years already.
    * Documentation blocks.
    * /demo: Add all variations (same as /test).
    * /demo: Add dynamic language switcher menu
    
    Changes:
    * "isUTC" option no longer needed. ISO 8601 timestamps can
      contain timestamps themselves (and should!). Previously this
      was relevant because the lazy parsing implementation removed
      [TZ] from the string. But now that this is taken into
      consideration, it will be more accurate.
      I considered keeping it, but couldn't make it work reliably.
      It has to be in the timestamp itself for it to be relevant.
    * Removed .fromUTC().
    * Converted line endings to Unix (git-diff ^M warnings).
    * Rename /localization and files to match jquery-ui convention.
      New directory: /i18n
      The filenames were mostly already there, renamed:
     - 'jquery-prettydate-fr.js'
     - 'jquery-prettydate-lv.js'
    * Added new lines at EOFs.
    * Update upstream libs.
    * Update demo markup.
    * Update unit tests.
    * Update Dutch translation (i18n.nl).
    * Bump version number to next +'pre'.
    
    Issues:
    * Fix indentation and missing semicolons in various places
    * Fix "same has been deprecated since 2009 (e88049a0), use
       assert.deepEqual instead".
    * Passed JSHint.
    * Closes #2: Bad results when server and client timezones differ.
    * Closes #6: "1 weeks" -> "1 week".
    * Closes #8: Adding support for months and years.
    
    Libs:
    * curl 'http://code.jquery.com/jquery.js'; > libs/jquery.js
    * git submodule add git://github.com/jquery/qunit.git libs/jquery.qunit
Something went wrong with that request. Please try again.