Skip to content

Releases: samsonjs/strftime

v0.8.1

30 May 00:56
Compare
Choose a tag to compare
  • 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

v0.8.0

30 May 00:56
Compare
Choose a tag to compare
  • 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

v0.7.0

30 May 00:56
Compare
Choose a tag to compare
  • add support for passing in explicit timezones with strftimeTZ which accepts numeric offsets from GMT, in minutes

v0.6.2

30 May 00:56
Compare
Choose a tag to compare
  • expose strftimeUTC and localizedStrftime properly in browsers

v0.6.1

30 May 00:57
Compare
Choose a tag to compare
  • fix a bug where RequiredDateMethods was created as a global

v0.6.0

30 May 00:57
Compare
Choose a tag to compare
  • add %o to get the day of the month as an ordinal (in English)

v0.5.2

30 May 00:57
Compare
Choose a tag to compare
  • add some Ruby extension prefixes: -, _, and 0, and they work like so:
    strftime('%-d') // => "7"
    strftime('%_d') // => " 7"
    strftime('%0d') // => "07"
  • fix padding the day-of-year in %j
  • add a minified version of the code to the repo for easy distribution with some package managers

v0.5.1

30 May 00:57
Compare
Choose a tag to compare
  • remove deprecated getLocalizedStrftime function
  • make %C pad the century with spaces, like C
  • list all supported specifiers in the readme, it's no longer fair to say "look at man 3 strftime"
  • use fixed dates in the readme instead of "now", so people can execute the examples and see the same results
    Thanks to John Zwinck
  • fix %z for timezones greater than GMT
  • support any Date-like objects instead of checking for actual instances of Date

v0.5.0

30 May 00:57
Compare
Choose a tag to compare

v0.4.8

30 May 00:57
Compare
Choose a tag to compare