Commit graph

189 commits

Author SHA1 Message Date
2375b9732f add en_CA and zh_CN locales 2016-12-28 11:33:00 -08:00
335ef2ebe8 warn when trying to use a non-existent locale 2016-12-28 11:23:33 -08:00
1e41e85146 fix a bug with ordinal localization fallback 2016-12-28 11:23:19 -08:00
e571efe7bb fix indentation and capitalize Locales constant 2016-12-28 11:23:08 -08:00
71737c8004 Merge pull request #70 from iFixit/master
Localizations
2016-12-28 11:02:58 -08:00
a54410d663
allow localizing ordinals 2016-12-28 10:44:44 -08:00
f6c88d0629
fix dates crossing DST boundaries for UTC, closes #71 2016-12-28 10:32:43 -08:00
02586fa41e
update minified code 2016-12-27 11:03:29 -08:00
4c747ffa2a
update contributors and copyrights 2016-12-27 11:03:09 -08:00
b4e57a851e Merge pull request #68 from Kevin-Jin/patch-1
Pass through unrecognized directives
2016-12-27 10:58:05 -08:00
2294caa44b
add a comment about mis-detecting DateJS dates as locales 2016-12-27 10:57:37 -08:00
65aa4d5ea9 Merge pull request #69 from stiang/master
Make strftime play nice with dates that have been extended by DateJS
2016-12-27 10:52:20 -08:00
Alexandr Nikitin
f8e5b11c9b Merge pull request #72 from IOAyman/patch-1
Added yarn install cmd
2016-12-08 15:58:33 +02:00
Ayman Nedjmeddine
82a8bfae79 Added yarn install cmd 2016-12-05 21:58:44 +01:00
Andrew Pirondini
fc16548517 Merge pull request #3 from iFixit/fix-typo-in-portuguese-locale
Fix typo in Portuguese locale
2016-10-03 11:11:59 -07:00
Andrew Pirondini
0d0f90f7eb Fix typo in Portuguese locale 2016-10-03 10:12:53 -07:00
b1629fa333 add badges to readme 2016-09-06 18:26:12 -07:00
Stian Grytøyr
84bad921ab Make strftime play nice with dates that have been extended by DateJS 2015-12-31 01:25:55 +01:00
Kevin Jin
f5bb098221 Consistency with existing code
Add test for unrecognized directives to test.js.
Add braces around if statement.
2015-10-02 21:39:02 -04:00
Kevin Jin
58f5c3fee8 Support literal percent sign
By the spec for strftime(3), '%%' in the format string should be replaced with '%' in the resultString.
2015-09-27 11:03:32 -04:00
Kevin Jin
72a2f418c8 Pass through unrecognized directives
For compatibility with strftime() on Unix, preserve the percent sign for unrecognized directives when appending to resultString.
2015-09-27 10:41:58 -04:00
a133ab1a4e fix readme example output, closes #66 2015-08-30 16:44:18 -07:00
Andrew Pirondini
b0659a5f78 Add definitions for nine locales.
This adds the definitions for nine locales in the strftime file. It also
provides a function for getting a strftime localized by the locale
identifier.
2015-08-05 14:07:57 -07:00
Andrew Pirondini
870e4e3771 Merge pull request #1 from iFixit/update-strftime-for-localization
Update strftime for localization
2015-07-20 11:41:11 -07:00
d6f6e74351 fix example code 2015-06-11 09:53:06 -07:00
b852daca88 v0.9.2 2015-05-29 17:52:48 -07:00
93326a4d73 fix cached timestamps, closes #63 2015-05-29 17:45:20 -07:00
a213d716a6 Merge pull request #62 from pdehaan/patch-1
Update license attribute
2015-05-23 17:04:18 -07:00
Peter deHaan
29111d3bbb Update license attribute
specifying the type and URL is deprecated:

https://docs.npmjs.com/files/package.json#license
http://npm1k.org/
2015-05-23 16:08:48 -07:00
8adfd97924 Merge pull request #60 from samsonjs/test-times
always use GMT to construct times in tests
2015-03-31 17:52:36 -07:00
48d143eb90 always use GMT to construct times in tests 2015-03-29 14:16:12 -07:00
fe2892ebfa Merge pull request #59 from samsonjs/Issue56_BugInWeekNumber
Fixes #56 (Bug in %U)
2015-03-29 13:26:50 -07:00
Alexandr Nikitin
aee0e19edc Revert "Revert "Fixes #56 (Bug in %U)""
This reverts commit ab3d4a052e.
2015-03-29 11:38:17 +03:00
22ddd8982f Merge pull request #58 from samsonjs/revert-57-Issue56_BugInWeekNumber
Revert "Fixes #56 (Bug in %U)"
2015-03-26 14:56:35 -07:00
ab3d4a052e Revert "Fixes #56 (Bug in %U)" 2015-03-26 14:44:26 -07:00
603a716bf8 Merge pull request #57 from alexandrnikitin/Issue56_BugInWeekNumber
Fixes #56 (Bug in %U)
2015-03-26 14:35:46 -07:00
Alexandr Nikitin
067ae77ad9 Fix day number calculation taking DST into account
Based on the SO answer http://stackoverflow.com/a/15289883/974487
2015-03-26 21:43:57 +02:00
Alexandr Nikitin
002ac8ca4c Add field report tests for bug in %U in #56 2015-03-26 21:40:46 +02:00
1d4365f3d5 try to fix syntax highlighting on GitHub 2015-03-16 18:07:52 -07:00
30fd95dbba vapourize some stray semicolons 2015-03-16 18:02:54 -07:00
8ba1f03a71 warn about possible misuse of %:: or %::: modifiers 2015-03-16 18:02:34 -07:00
dcc5d54c1b v0.9.1 2015-03-16 17:48:04 -07:00
765f3f1946 minify 2015-03-16 17:48:04 -07:00
4676d05afe add a changelog 2015-03-16 17:47:11 -07:00
437beabe43 add missing contributors to readme & package.json 2015-03-16 17:33:08 -07:00
7b1151c7c0 re-fix issue #38 which was lost in the v0.9 merge 2015-03-16 17:32:56 -07:00
4dcc655477 minify 2015-03-15 17:02:08 -07:00
f4a2c852c3 readme formatting and improved deprecation warnings 2015-03-15 16:57:35 -07:00
affbd8e1cd improve backwards compatibility, fix a couple bugs 2015-03-15 16:45:59 -07:00
543e81ca83 add install instructions for bower and component 2015-03-15 16:19:27 -07:00