]>
git.ipfire.org Git - thirdparty/moment.git/log
Iskren Chernev [Mon, 29 Dec 2014 09:10:10 +0000 (11:10 +0200)]
Add quarter diff support
Iskren Chernev [Sun, 28 Dec 2014 17:37:13 +0000 (19:37 +0200)]
Merge pull request #2128 from ichernev:locale-dow-doy
Add firstDayOfWeek, firstDayOfYear locale getters
Iskren Chernev [Sun, 28 Dec 2014 17:33:45 +0000 (19:33 +0200)]
Add firstDayOfWeek, firstDayOfYear locale getters
Iskren Chernev [Sun, 28 Dec 2014 17:12:56 +0000 (19:12 +0200)]
Fix bug in iso-week creation test
Iskren Chernev [Sun, 28 Dec 2014 16:53:14 +0000 (18:53 +0200)]
Merge pull request #2054 from elad:develop
Call updateOffset when creating moment
Iskren Chernev [Sun, 28 Dec 2014 16:51:46 +0000 (18:51 +0200)]
Make sure updateOffset on creation won't cause infinite recursion
elad [Wed, 29 Oct 2014 15:12:12 +0000 (17:12 +0200)]
Call updateOffset on moment creation
Iskren Chernev [Sun, 28 Dec 2014 16:27:35 +0000 (18:27 +0200)]
Merge pull request #1950 from ichernev:bugfix/meridiem-in-locales
Fix parsing of meridiem in locales that have meridiem
Iskren Chernev [Fri, 26 Dec 2014 10:27:05 +0000 (12:27 +0200)]
Add meridiemHour to locales that need it
Iskren Chernev [Fri, 26 Dec 2014 10:28:54 +0000 (12:28 +0200)]
Support meridiemHour in locales
Some meridiem tokens span across noon, so there is no clear am/pm equivalent.
To properly parse such locales one needs the token AND the hour together to
produce a new hour (that might be same as hour or hour + 12). Also hour 12 has
special meaning
Iskren Chernev [Sat, 27 Sep 2014 21:56:36 +0000 (14:56 -0700)]
Fix parsing of meridiem in locales that have meridiem
There were many locales that supported meridiem output, but did not support
parsing (meridiemParse and isPM locale keys). Also some locales can not be
parsed with a simple isPM function, because the variants are not different
around noon.
A new isPM function (with new name -- fixPM) is needed that also takes an hour
and returns whether you should add 12 hours or not.
Iskren Chernev [Fri, 26 Dec 2014 09:00:14 +0000 (01:00 -0800)]
Style fixes
Iskren Chernev [Thu, 25 Dec 2014 11:13:38 +0000 (03:13 -0800)]
Revert "Merge pull request #2054 from elad:develop"
This reverts commit
e2e4f4f9eff89d395eaacc2039ac0dac88941acd , reversing
changes made to
e9d9a71eed1445e5c2f85bf584ca7b25dbb9a9c5 .
Iskren Chernev [Thu, 25 Dec 2014 11:02:08 +0000 (03:02 -0800)]
Style fixes
Iskren Chernev [Wed, 24 Dec 2014 21:45:43 +0000 (13:45 -0800)]
Merge pull request #1809 from jordansexton:develop
Allowing moment.set() to accept a hash of units
Jordan Sexton [Wed, 30 Jul 2014 05:50:43 +0000 (00:50 -0500)]
Jordan Sexton [Wed, 30 Jul 2014 05:46:31 +0000 (00:46 -0500)]
Allowing moment.set() to accept a hash of units
Iskren Chernev [Wed, 24 Dec 2014 21:40:31 +0000 (13:40 -0800)]
Merge pull request #1825 from dyro:develop
Implemented toJSON function on Duration
Dylan Ross [Sun, 3 Aug 2014 05:15:34 +0000 (23:15 -0600)]
Implemented toJSON function on Duration so JSON.stringify returns the ISO string representation of the duration
Iskren Chernev [Wed, 24 Dec 2014 21:38:09 +0000 (13:38 -0800)]
Merge pull request #1893 from ichernev:is-date
Add moment.isDate method
Iskren Chernev [Fri, 29 Aug 2014 15:12:59 +0000 (18:12 +0300)]
Add moment.isDate method
Iskren Chernev [Wed, 24 Dec 2014 21:36:19 +0000 (13:36 -0800)]
Merge pull request #1963 from ichernev:amd-export
Use anonymous module when exporting via AMD
Iskren Chernev [Tue, 7 Oct 2014 07:42:31 +0000 (00:42 -0700)]
Use anonymous module when exporting via AMD
Iskren Chernev [Wed, 24 Dec 2014 21:35:13 +0000 (13:35 -0800)]
Merge pull request #2054 from elad:develop
Call updateOffset when creating moment
elad [Fri, 31 Oct 2014 06:58:09 +0000 (08:58 +0200)]
Better approach for keeping timezone from @timrwood.
elad [Wed, 29 Oct 2014 15:12:12 +0000 (17:12 +0200)]
Propagate a _zn property if it exists and update offset by default.
Iskren Chernev [Wed, 24 Dec 2014 21:34:24 +0000 (13:34 -0800)]
Merge pull request #2066 from MeteorPackaging:patch-3
Uniform package description across Bower, Npmjs etc.
Dan Dascalescu [Mon, 24 Nov 2014 11:15:40 +0000 (03:15 -0800)]
Uniform package description across Bower, Npmjs etc.
Iskren Chernev [Wed, 24 Dec 2014 21:29:55 +0000 (13:29 -0800)]
Merge pull request #2074 from ichernev:utc-offset
Implement moment.fn.utcOffset, deprecate momen.fn.zone
Iskren Chernev [Mon, 1 Dec 2014 07:52:32 +0000 (07:52 +0000)]
Fix a few broken tests in UTC timezone
Iskren Chernev [Fri, 28 Nov 2014 08:20:29 +0000 (00:20 -0800)]
Convert all zone tests to utc offset
Iskren Chernev [Fri, 28 Nov 2014 07:12:44 +0000 (23:12 -0800)]
offset -> utc_offset
Iskren Chernev [Fri, 28 Nov 2014 07:10:06 +0000 (23:10 -0800)]
Switch zone to utcOffset in some tests
Iskren Chernev [Fri, 28 Nov 2014 06:32:13 +0000 (22:32 -0800)]
Remove zone from comments
Iskren Chernev [Fri, 28 Nov 2014 06:24:54 +0000 (22:24 -0800)]
Deprecate zone function in favor of utcOffset
Iskren Chernev [Sun, 23 Nov 2014 09:36:55 +0000 (01:36 -0800)]
Add isLocal(), isUtc() == isUTC(), isUtcOffset()
Iskren Chernev [Sun, 23 Nov 2014 09:26:45 +0000 (01:26 -0800)]
Implement moment.fn.utcOffset, base moment.fn.zone on top
Iskren Chernev [Sun, 23 Nov 2014 09:24:53 +0000 (01:24 -0800)]
Style changes in tests
Iskren Chernev [Wed, 24 Dec 2014 21:28:44 +0000 (13:28 -0800)]
Merge pull request #2088 from stoeffel:develop
add isBetween
Christoph Hermann [Mon, 8 Dec 2014 21:15:13 +0000 (22:15 +0100)]
add isBetween
closes #2087
Iskren Chernev [Wed, 24 Dec 2014 21:27:49 +0000 (13:27 -0800)]
Merge pull request #2090 from amire80:esrim-shana
Add a special case for years in Hebrew locale
Amir E. Aharoni [Tue, 9 Dec 2014 07:03:39 +0000 (09:03 +0200)]
Changed if to else if
According to @tomer's suggestion.
Amir E. Aharoni [Tue, 9 Dec 2014 00:26:07 +0000 (02:26 +0200)]
Add a special case for years in Hebrew locale
In Hebrew years that end with a zero except 10 (20, 30, 100, etc.)
use a different plural form, which is identical to the singular.
I added this form.
This is also used by the CLDR plural rules.
Iskren Chernev [Wed, 24 Dec 2014 21:25:24 +0000 (13:25 -0800)]
Merge pull request #2097 from tunpixel:develop
add ar-tn locale
Nader Toukabri [Thu, 11 Dec 2014 15:47:49 +0000 (16:47 +0100)]
add ar-tn locale
Iskren Chernev [Wed, 24 Dec 2014 21:24:50 +0000 (13:24 -0800)]
Merge pull request #2098 from ichernev:nuget
Add nuget publishing support
Iskren Chernev [Sun, 14 Dec 2014 21:27:25 +0000 (13:27 -0800)]
Add nuget publishing support
Iskren Chernev [Wed, 24 Dec 2014 21:22:44 +0000 (13:22 -0800)]
Merge pull request #2104 from robin0van0der0v:patch-1
Frisian (fy) language file with unit test
Robin van der Vliet [Tue, 16 Dec 2014 22:06:37 +0000 (23:06 +0100)]
Update fy.js
Robin van der Vliet [Tue, 16 Dec 2014 21:53:58 +0000 (22:53 +0100)]
Create fy.js
Robin van der Vliet [Tue, 16 Dec 2014 21:53:15 +0000 (22:53 +0100)]
Create fy.js
Iskren Chernev [Wed, 24 Dec 2014 21:19:56 +0000 (13:19 -0800)]
Merge pull request #2117 from butterflyhug:global-scope-hack
Add globalScope hack to more reliably distinguish Node vs browser
Lucas Sanders [Mon, 22 Dec 2014 14:40:13 +0000 (09:40 -0500)]
Add globalScope hack to more reliably distinguish Node vs browser
See #2092: browser-based apps that have DOM nodes with the id
"global" were being detected as Node apps for purposes of assigning
moment to the runtime's global namespace. This change is intended
to fix that issue for most practical use cases, hopefully without
breaking anyone's existing usage.
Algorithm: If `global` is not defined, then we want to use
`window`. If `global` is defined but `window` is not, then we want
to use `global`. If both `global` and `window` are defined, then
we want to assign to `global` if `window === global.window` --
otherwise we assume that `global === window.global`, in which case
we want to assign to `window`.
Iskren Chernev [Mon, 1 Dec 2014 07:58:05 +0000 (07:58 +0000)]
Use JavaScript instead of javascript in pkg descriptions
Iskren Ivov Chernev [Mon, 1 Dec 2014 06:40:39 +0000 (22:40 -0800)]
Merge pull request #2073 from MeteorPackaging/meteor-integration
Get rid of the .sh scripts; target all Meteor versions
Dan Dascalescu [Sun, 30 Nov 2014 20:24:44 +0000 (12:24 -0800)]
Separate meteor-publish task, and depend on latest spacejam
Dan Dascalescu [Sun, 30 Nov 2014 07:15:34 +0000 (23:15 -0800)]
Get rid of the .sh scripts; target all Meteor versions
Iskren Chernev [Sat, 29 Nov 2014 19:26:24 +0000 (11:26 -0800)]
More fixes on meteor/publish
Iskren Ivov Chernev [Sat, 29 Nov 2014 19:16:41 +0000 (11:16 -0800)]
Merge pull request #2062 from dandv/develop
Improvements in meteor related files.
Dan Dascalescu [Sat, 29 Nov 2014 11:11:59 +0000 (03:11 -0800)]
Grunt task to meteor publish; improved scripts
Dan Dascalescu [Mon, 24 Nov 2014 03:04:58 +0000 (19:04 -0800)]
Fix Meteor integration and make more robust
Iskren Chernev [Sun, 23 Nov 2014 05:44:44 +0000 (21:44 -0800)]
Fix meteor/publish script
Iskren Chernev [Thu, 20 Nov 2014 18:12:11 +0000 (10:12 -0800)]
Update bump_version script to work with meteor package
Iskren Ivov Chernev [Thu, 20 Nov 2014 18:04:35 +0000 (10:04 -0800)]
Merge pull request #2059 from dandv/develop
Add packaging for Meteor.js
Dan Dascalescu [Wed, 19 Nov 2014 11:10:51 +0000 (03:10 -0800)]
Add packaging for Meteor.js
Iskren Chernev [Wed, 19 Nov 2014 04:22:17 +0000 (20:22 -0800)]
Build 2.8.4
Iskren Chernev [Wed, 19 Nov 2014 04:20:47 +0000 (20:20 -0800)]
Bump version to 2.8.4
Iskren Chernev [Wed, 19 Nov 2014 04:19:42 +0000 (20:19 -0800)]
Update changelog for 2.8.4
Iskren Chernev [Mon, 17 Nov 2014 18:26:35 +0000 (10:26 -0800)]
Fix global detection in tests
Iskren Chernev [Mon, 17 Nov 2014 17:31:42 +0000 (09:31 -0800)]
Merge pull request #1933 from szelga:fix-1876
fix #1876
Iskren Chernev [Mon, 17 Nov 2014 17:31:14 +0000 (09:31 -0800)]
Shorten switch statement
Wasil W Siargiejczyk [Mon, 17 Nov 2014 13:49:03 +0000 (18:49 +0500)]
see https://github.com/moment/moment/pull/1933#issuecomment-
63302299
Wasil W Siargiejczyk [Sun, 28 Sep 2014 06:53:38 +0000 (12:53 +0600)]
see https://github.com/moment/moment/pull/1933#discussion_r18125806
Wasil W Siargiejczyk [Sun, 21 Sep 2014 11:06:13 +0000 (17:06 +0600)]
add accusative condition for Russian locale, fix #1876
Wasil W Siargiejczyk [Sun, 21 Sep 2014 11:05:07 +0000 (17:05 +0600)]
modify tests for Russian locale
Wasil W Siargiejczyk [Sun, 21 Sep 2014 10:09:30 +0000 (16:09 +0600)]
alter Russian locale
Wasil W Siargiejczyk [Sun, 21 Sep 2014 09:53:32 +0000 (15:53 +0600)]
pass present moment to a calendar function
Wasil W Siargiejczyk [Sun, 21 Sep 2014 09:50:35 +0000 (15:50 +0600)]
allow passing additional arguments to calendar function
Iskren Chernev [Mon, 17 Nov 2014 17:23:20 +0000 (09:23 -0800)]
Merge pull request #2016 from radekdostal:develop
Fix long date format for Czech
Radek Dostál [Wed, 29 Oct 2014 14:52:18 +0000 (15:52 +0100)]
Fix long date format for Czech
Removed nonbreaking spaces from "L" long date format.
Iskren Chernev [Mon, 17 Nov 2014 07:45:36 +0000 (23:45 -0800)]
Merge pull request #2009 from elliotf:fall_back_to_native_toISOString
Use native toISOString when we can
Elliot Foster [Fri, 24 Oct 2014 23:35:25 +0000 (16:35 -0700)]
Take advantage of native speed when we can
See #1999
Iskren Chernev [Mon, 17 Nov 2014 07:43:02 +0000 (23:43 -0800)]
Merge pull request #2010 from butterflyhug:fix-locale-warning
Update deprecation warning for moment().lang()
Lucas Sanders [Sat, 25 Oct 2014 15:54:46 +0000 (11:54 -0400)]
Update deprecation warning for moment().lang()
Our advice for users should match our implementation of the
compatibility shim, which uses localeData() as a getter and
locale() as a setter.
Iskren Chernev [Mon, 17 Nov 2014 07:37:03 +0000 (23:37 -0800)]
Merge pull request #1961 from ichernev:add-npm-cleanup-script
Add a script to prepare moment for npm publish
Iskren Chernev [Thu, 9 Oct 2014 09:22:55 +0000 (02:22 -0700)]
Use whitelist instead of blacklist
Iskren Chernev [Tue, 7 Oct 2014 05:42:13 +0000 (22:42 -0700)]
Add a script to prepare moment for npm publish
Iskren Chernev [Mon, 17 Nov 2014 07:31:05 +0000 (23:31 -0800)]
Merge pull request #1925 from jsmreese:fix-duration-as-getters
Fix duration as getters (years and months convert to whole days)
John Madhavan-Reese [Sat, 13 Sep 2014 04:46:21 +0000 (00:46 -0400)]
whitespace
John Madhavan-Reese [Sat, 13 Sep 2014 04:23:27 +0000 (00:23 -0400)]
whitespace
John Madhavan-Reese [Sat, 13 Sep 2014 04:18:30 +0000 (00:18 -0400)]
Removed old duration as getter tests.
John Madhavan-Reese [Sat, 13 Sep 2014 04:17:24 +0000 (00:17 -0400)]
Added new duration as getter tests.
John Madhavan-Reese [Fri, 12 Sep 2014 21:16:07 +0000 (17:16 -0400)]
Use Math.round instead of Math.floor for more realistic days output.
John Madhavan-Reese [Fri, 12 Sep 2014 21:05:33 +0000 (17:05 -0400)]
Comment out old duration as getter tests.
John Madhavan-Reese [Fri, 12 Sep 2014 21:00:07 +0000 (17:00 -0400)]
Round yearsToDays output to a whole number.
Iskren Chernev [Mon, 17 Nov 2014 07:17:02 +0000 (23:17 -0800)]
Merge pull request #2008 from ichernev:fix-end-of
Fix endOf handling of no-arg and ms
Iskren Chernev [Fri, 24 Oct 2014 07:37:07 +0000 (11:37 +0400)]
Fix endOf handling of no-arg and ms
Iskren Chernev [Mon, 17 Nov 2014 06:54:30 +0000 (22:54 -0800)]
Merge pull request #2003 from ichernev:detect-big-hours
Detect hours above 12 with h/hh tokens
Iskren Chernev [Wed, 22 Oct 2014 18:00:30 +0000 (11:00 -0700)]
Detect hours above 12 with h/hh tokens
Update the docs about parsingFlags to include bigHour key.
Fixes #1734
Iskren Chernev [Mon, 17 Nov 2014 06:50:28 +0000 (22:50 -0800)]
Merge pull request #2002 from ichernev:accept-date-key-object
Accept 'date' when creating moment with object