Skip to content

Commit a0a62db

Browse files
committed
Release v0.10.2
1 parent 5275347 commit a0a62db

File tree

6 files changed

+52
-12
lines changed

6 files changed

+52
-12
lines changed

Changelog.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
v0.10.2 on 2023-05-24
2+
3+
- Fix test case for %c in current versions of node.js
4+
5+
- Fix %-y so it omits the leading zero
6+
7+
Thanks to [Aryan Arora](https://github.com/aryan-debug) for both fixes!
8+
19
v0.10.1 on 2021-12-12
210
---------------------
311

Readme.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ strftime
33

44
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.
55

6-
[![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)
6+
[![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)
77

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

201202

202203
License
203204
=======
204205

205-
Copyright 2010 - 2021 Sami Samhuri [email protected]
206+
Copyright 2010 - 2023 Sami Samhuri [email protected]
206207

207208
[MIT license](https://sjs.mit-license.org)

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "strftime",
3-
"version": "0.10.1",
3+
"version": "0.10.2",
44
"main": "strftime.js",
55
"ignore": [
66
"Readme.md",

component.json

+11-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@
22
"name": "strftime",
33
"repo": "samsonjs/strftime",
44
"description": "strftime date formatting",
5-
"keywords": ["strftime", "format", "date", "time"],
6-
"version": "0.10.1",
5+
"keywords": [
6+
"strftime",
7+
"format",
8+
"date",
9+
"time"
10+
],
11+
"version": "0.10.2",
712
"main": "strftime.js",
8-
"scripts": ["strftime.js"]
9-
}
13+
"scripts": [
14+
"strftime.js"
15+
]
16+
}

package-lock.json

+17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "strftime",
33
"description": "strftime for JavaScript",
4-
"version": "0.10.1",
4+
"version": "0.10.2",
55
"homepage": "https://samhuri.net/projects/strftime",
66
"author": "Sami Samhuri <[email protected]>",
77
"contributors": [
@@ -24,9 +24,16 @@
2424
"Stian Grytøyr (https://github.com/stiang)",
2525
"TJ Holowaychuk (https://github.com/tj)",
2626
"w0den (https://github.com/w0den)",
27-
"Yusuke Kawasaki (https://github.com/kawanet)"
27+
"Yusuke Kawasaki (https://github.com/kawanet)",
28+
"Aryan Arora (https://github.com/aryan-debug)"
29+
],
30+
"keywords": [
31+
"strftime",
32+
"format",
33+
"string",
34+
"time",
35+
"date"
2836
],
29-
"keywords": ["strftime", "format", "string", "time", "date"],
3037
"repository": {
3138
"type": "git",
3239
"url": "git://github.com/samsonjs/strftime.git"
@@ -43,4 +50,4 @@
4350
"dependencies": {},
4451
"devDependencies": {},
4552
"optionalDependencies": {}
46-
}
53+
}

0 commit comments

Comments
 (0)