Commit graph

34 commits

Author SHA1 Message Date
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
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
61f6193e57 add an example of each format specifier inline in the code 2013-11-19 19:17:30 -08:00
1633e4007c add support for passing in timezones 2013-10-14 18:43:00 -07:00
24ba42b128 export strftimeUTC and localizedStrftime properly in browsers, closes #27 2013-08-29 09:55:25 -07:00
10dc00040e RequiredDateMethods is not supposed to be global, fixes #26 2013-06-13 13:04:50 -07:00
088600d67f implement %o to get the day of the month as an ordinal 2013-05-15 16:34:06 -07:00
Sami Samhuri
2e6443f394 actually pad day of year for %j, closes #22 2013-04-07 20:14:08 -07:00
Sami Samhuri
71d3468fd1 update copyright and license stuff 2013-03-07 22:58:53 -08:00
Sami Samhuri
8791c074cc move lib/index.js to strftime.js 2013-03-07 19:55:51 -08:00
Renamed from lib/index.js (Browse further)