Skip to content

Commit

Permalink
Release v0.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonjs committed May 25, 2023
1 parent 5275347 commit a0a62db
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 12 deletions.
8 changes: 8 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
v0.10.2 on 2023-05-24

- Fix test case for %c in current versions of node.js

- Fix %-y so it omits the leading zero

Thanks to [Aryan Arora](https://github.com/aryan-debug) for both fixes!

v0.10.1 on 2021-12-12
---------------------

Expand Down
7 changes: 4 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ strftime

strftime for JavaScript. Works in (at least) node.js and browsers. Supports localization and timezones. Most standard specifiers from C are supported as well as some other extensions from Ruby.

[![version 0.10.1 on npm](https://img.shields.io/badge/npm-0.10.1-brightgreen.svg?style=flat)](https://www.npmjs.com/package/strftime) [![node version 0.2 and up](https://img.shields.io/badge/node->=0.2-brightgreen.svg?style=flat)](https://nodejs.org) [![MIT License](https://img.shields.io/badge/License-MIT-blue.svg?style=flat)](https://sjs.mit-license.org)
[![version 0.10.2 on npm](https://img.shields.io/badge/npm-0.10.2-brightgreen.svg?style=flat)](https://www.npmjs.com/package/strftime) [![node version 0.2 and up](https://img.shields.io/badge/node->=0.2-brightgreen.svg?style=flat)](https://nodejs.org) [![MIT License](https://img.shields.io/badge/License-MIT-blue.svg?style=flat)](https://sjs.mit-license.org)

Installation
============
Expand Down Expand Up @@ -148,7 +148,7 @@ e.g. `%q` becomes `q`. Use `%%` to get a literal `%` sign.
- X: equivalent to `%T` or `%r` in en_US (based on locale)
- x: equivalent to `%D` in en_US (based on locale)
- Y: the year with the century
- y: the year without the century (00-99)
- y: the year without the century, padded to 2 digits (00-99)
- Z: the time zone name, replaced with an empty string if it is not found
- z: the time zone offset from UTC, with a leading plus sign for UTC and zones east
of UTC and a minus sign for those west of UTC, hours and minutes follow each
Expand Down Expand Up @@ -197,11 +197,12 @@ Contributors
* [TJ Holowaychuk](https://github.com/tj)
* [w0den](https://github.com/w0den)
* [Yusuke Kawasaki](https://github.com/kawanet)
* [Aryan Arora](https://github.com/aryan-debug)


License
=======

Copyright 2010 - 2021 Sami Samhuri [email protected]
Copyright 2010 - 2023 Sami Samhuri [email protected]

[MIT license](https://sjs.mit-license.org)
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "strftime",
"version": "0.10.1",
"version": "0.10.2",
"main": "strftime.js",
"ignore": [
"Readme.md",
Expand Down
15 changes: 11 additions & 4 deletions component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@
"name": "strftime",
"repo": "samsonjs/strftime",
"description": "strftime date formatting",
"keywords": ["strftime", "format", "date", "time"],
"version": "0.10.1",
"keywords": [
"strftime",
"format",
"date",
"time"
],
"version": "0.10.2",
"main": "strftime.js",
"scripts": ["strftime.js"]
}
"scripts": [
"strftime.js"
]
}
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "strftime",
"description": "strftime for JavaScript",
"version": "0.10.1",
"version": "0.10.2",
"homepage": "https://samhuri.net/projects/strftime",
"author": "Sami Samhuri <[email protected]>",
"contributors": [
Expand All @@ -24,9 +24,16 @@
"Stian Grytøyr (https://github.com/stiang)",
"TJ Holowaychuk (https://github.com/tj)",
"w0den (https://github.com/w0den)",
"Yusuke Kawasaki (https://github.com/kawanet)"
"Yusuke Kawasaki (https://github.com/kawanet)",
"Aryan Arora (https://github.com/aryan-debug)"
],
"keywords": [
"strftime",
"format",
"string",
"time",
"date"
],
"keywords": ["strftime", "format", "string", "time", "date"],
"repository": {
"type": "git",
"url": "git://github.com/samsonjs/strftime.git"
Expand All @@ -43,4 +50,4 @@
"dependencies": {},
"devDependencies": {},
"optionalDependencies": {}
}
}

0 comments on commit a0a62db

Please sign in to comment.