db1c066f13
Fix Chinese months
...
Change as described by @mogando668, closes #88
2024-06-11 16:55:58 -07:00
53e26ba77d
Stop using let, closes #87
2024-05-28 12:16:26 -07:00
52753479c8
Tweak code style and minify
2023-05-24 21:02:03 -07:00
aryan-debug
b50d512dee
Fixed issue #84
2023-05-21 22:14:09 -07:00
aryan-debug
51a6ade03d
Fixed issue #84
2023-04-17 01:54:01 -07:00
dee584fda4
Improve support for v8's Date.toString time zone
2021-12-12 10:43:07 -08:00
5a1db7ba03
Update copyright and link in package.json
2021-12-12 10:41:47 -08:00
Douglas E. Pereira
e0780d045f
fix it_IT shortMonths locale
2021-11-29 22:34:47 -03:00
3ed3100018
remove deprecated API, closes #55
2016-12-28 11:58:09 -08:00
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
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
Andrew Pirondini
0d0f90f7eb
Fix typo in Portuguese locale
2016-10-03 10:12:53 -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
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
93326a4d73
fix cached timestamps, closes #63
2015-05-29 17:45:20 -07:00
Alexandr Nikitin
aee0e19edc
Revert "Revert "Fixes #56 (Bug in %U)""
...
This reverts commit ab3d4a052e .
2015-03-29 11:38:17 +03:00
ab3d4a052e
Revert "Fixes #56 (Bug in %U)"
2015-03-26 14:44:26 -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
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
7b1151c7c0
re-fix issue #38 which was lost in the v0.9 merge
2015-03-16 17:32:56 -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
c6464d0130
make the CommonJS / Node export backwards compatible
...
also improves deprecation notices
2015-03-15 15:38:16 -07:00
bfe34d92b5
polyfill Date.now for old browsers
2015-03-15 15:20:32 -07:00
23cd5feb98
code formatting / nitpicks
2015-03-15 15:20:31 -07:00
c029f7a79e
Merge branch 'master' into v0.9
...
Conflicts:
strftime.js
test/test.js
2015-03-05 16:49:32 -08:00
Cory Heslip
4de2693e51
added support for extended offset format
2015-03-04 16:50:39 -07:00
f7799a1d21
correct fuzzy interpretation of old years by new Date()
2015-03-04 09:14:58 -08:00
Alexandr Nikitin
b0a4d5a84a
Fix conversion of date to UTC
...
Method based on one of SO answers: http://stackoverflow.com/questions/948532/how-do-you-convert-a-javascript-date-to-utc
2015-03-03 12:26:23 +02:00
603326eaed
code style and copyright
2015-02-07 20:59:15 -08:00
6bc6888fff
add support for %c, %x, and %X ( closes #43 )
...
based on @alexandrnikitin's commit here: f25c89bb0f
2015-02-07 20:59:15 -08:00
6ab81c89cb
code style
2015-02-07 20:59:15 -08:00
f36819ad99
merge V2 code and deprecate the old API
2015-02-07 20:58:53 -08:00
687ad1ec1e
correctly pad %e with a leading space, fixes #44
2014-08-08 16:58:24 -07:00
Alexandr Nikitin
dfeb3f8e97
Fix for #39 (Bug when specify partial hour timezone)
...
Changed calculation of timezone offset in minutes
Added round and abs for partial hour
2014-06-17 18:21:29 +04:00
w0den
9ea642274c
Improve detection of timezone name
...
Timezone name can contain contain spaces (ex. "GTB Daylight Time" or "Pacific Daylight Time") this is why we should use [\w\s+] instead of \w.
2014-05-21 16:34:35 +03:00
0652b285a7
test for string timezones, fix a bug
2014-01-29 14:42:35 -08:00
99382d2d5e
allow string timezone offsets of the form [-+]HHMM, closes #33
2014-01-29 14:35:39 -08:00