diff --git a/Changelog.md b/Changelog.md index df2fc96..94c6924 100644 --- a/Changelog.md +++ b/Changelog.md @@ -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 --------------------- diff --git a/Readme.md b/Readme.md index 58470cf..1145561 100644 --- a/Readme.md +++ b/Readme.md @@ -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 ============ @@ -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 @@ -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 sami@samhuri.net +Copyright 2010 - 2023 Sami Samhuri sami@samhuri.net [MIT license](https://sjs.mit-license.org) diff --git a/bower.json b/bower.json index dd7edc9..8f97eeb 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "strftime", - "version": "0.10.1", + "version": "0.10.2", "main": "strftime.js", "ignore": [ "Readme.md", diff --git a/component.json b/component.json index 8a0ba38..270251e 100644 --- a/component.json +++ b/component.json @@ -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" + ] +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..fe738fa --- /dev/null +++ b/package-lock.json @@ -0,0 +1,17 @@ +{ + "name": "strftime", + "version": "0.10.2", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "strftime", + "version": "0.10.2", + "license": "MIT", + "devDependencies": {}, + "engines": { + "node": ">=0.2.0" + } + } + } +} \ No newline at end of file diff --git a/package.json b/package.json index 72bf437..d2d3cc8 100644 --- a/package.json +++ b/package.json @@ -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 ", "contributors": [ @@ -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" @@ -43,4 +50,4 @@ "dependencies": {}, "devDependencies": {}, "optionalDependencies": {} -} +} \ No newline at end of file