Comparing version 0.8.1 to 0.8.2
@@ -6,5 +6,5 @@ { | ||
"keywords": ["strftime", "format", "date", "time"], | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"main": "strftime.js", | ||
"scripts": ["strftime.js"] | ||
} |
{ | ||
"name": "strftime", | ||
"description": "strftime for JavaScript", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"homepage": "http://samhuri.net/proj/strftime", | ||
@@ -6,0 +6,0 @@ "author": "Sami Samhuri <sami@samhuri.net>", |
@@ -167,3 +167,3 @@ // | ||
// '01' | ||
case 'e': return d.getDate(); | ||
case 'e': return pad(d.getDate(), padding == null ? ' ' : padding); | ||
@@ -241,3 +241,3 @@ // '1970-01-01' | ||
// '1-Jan-1970' | ||
// ' 1-Jan-1970' | ||
case 'v': return _strftime(locale.formats.v || '%e-%b-%Y', d, locale); | ||
@@ -244,0 +244,0 @@ |
@@ -68,3 +68,3 @@ #!/usr/bin/env node | ||
assert.format('%0d', '07') | ||
assert.format('%e', '7') | ||
assert.format('%e', ' 7') | ||
assert.format('%F', '2011-06-07') | ||
@@ -99,3 +99,3 @@ assert.format('%H', null, '18') | ||
assert.format('%u', '2') | ||
assert.format('%v', '7-Jun-2011') | ||
assert.format('%v', ' 7-Jun-2011') | ||
assert.format('%W', '23') | ||
@@ -157,3 +157,3 @@ assert.format('%W', '23', null, new Date(+TestTime + 5 * 86400000)) | ||
assert.format_it('%T', null, 'it$18:51:45') | ||
assert.format_it('%v', 'it$7-giu-2011') | ||
assert.format_it('%v', 'it$ 7-giu-2011') | ||
ok('Localization') | ||
@@ -160,0 +160,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27741