@samsonjs samsonjs released this May 30, 2015 · 2 commits to master since this release

  • fix a caching bug, which was a regression in 0.9.0 (issue #63)

  • update license attribute in package.json as required by npm
    Thanks to Peter deHaan

  • construct GMT times used in tests in a more robust way

  • fix a bug calculating week numbers (issue #56)
    Thanks to Alexandr Nikitin

  • warn about possible misuse of %:: or %::: modifiers



@samsonjs samsonjs released this Mar 17, 2015 · 18 commits to master since this release

  • re-fix issue #38 which was lost in the v0.9 merge

  • add a changelog



@samsonjs samsonjs released this Mar 15, 2015 · 24 commits to master since this release

This release marks the final run up to v1.0, which should be released by March 2016.

The headline feature is a huge performance boost resulting from this contest. Alexandr Nikitin has essentially rewritten the code and the results speak for themselves.

Along with this the API has been unified and cleaned up. strftimeTZ, strftimeUTC, and localizedStrftime have all been deprecated in favour of the following functions: timezone(tz), utc(), and localize(locale). You use them like so:

    var strftime = require('strftime'); // not required in web browsers

    var strftimeIT = strftime.localize(anItalianLocale);
    var strftimePST = strftime.timezone('-0800');
    var strftimeUTC = strftime.utc();

    // You can combine them
    var strftimeIT_PST = strftimeIT.timezone('-0800');

    // And chain them all at once
    var strftimeIT_PST = strftime.localize(anItalianLocale).timezone('-0800');

The previous API is deprecated and will be removed for v1.0. The good news is that the previous API is supported by adapting the new API, so you get most of the performance benefits before you even update your code to use the new API.

The new API does not support passing in a custom timezone or locale on each call to strftime. This is a regression so if you really need this use case let us know and we'll figure something out.

Thanks to all contributors that have helped to improve this library over the past 4 years.



@samsonjs samsonjs released this Mar 6, 2015 · 45 commits to master since this release

  • fix conversion of dates to UTC
    Thanks to Alexandr Nikitin

  • extend %z with a colon separator in timezone offsets, "[+-]HH:MM"
    Thanks to Cory Heslip

  • ignore irrelevant files in bower.json



@samsonjs samsonjs released this Feb 9, 2015 · 54 commits to master since this release

  • first release for Bower, and only released for Bower



@samsonjs samsonjs released this Aug 8, 2014 · 57 commits to master since this release

  • fix %e which is supposed to be padded with a space



@samsonjs samsonjs released this Jun 17, 2014 · 59 commits to master since this release

  • fix %Z when the timezone contains spaces
    Thanks to w0den

  • fix examples using %Y in the readme
    Thanks to Ryan Regalado

  • fix a bug when specifying minutes in the timezone
    Thanks to Alexandr Nikitin



@samsonjs samsonjs released this Jan 29, 2014 · 68 commits to master since this release

  • allow timezones to be specified as strings of the form "+0100" or "-0800" ([+-]HHMM)

  • fix a bug running tests where the environment variable TZ is empty and the system timezone is not PST/PDT



@samsonjs samsonjs released this Nov 9, 2013 · 75 commits to master since this release

  • add support for passing in explicit timezones with strftimeTZ which accepts numeric offsets from GMT, in minutes



@samsonjs samsonjs released this Aug 29, 2013 · 79 commits to master since this release

  • expose strftimeUTC and localizedStrftime properly in browsers