]> git.ipfire.org Git - thirdparty/moment.git/log
thirdparty/moment.git
10 years agoAdd quarter diff support 2131/head
Iskren Chernev [Mon, 29 Dec 2014 09:10:10 +0000 (11:10 +0200)] 
Add quarter diff support

10 years agoMerge pull request #2128 from ichernev:locale-dow-doy
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

10 years agoAdd firstDayOfWeek, firstDayOfYear locale getters 2128/head
Iskren Chernev [Sun, 28 Dec 2014 17:33:45 +0000 (19:33 +0200)] 
Add firstDayOfWeek, firstDayOfYear locale getters

10 years agoFix bug in iso-week creation test
Iskren Chernev [Sun, 28 Dec 2014 17:12:56 +0000 (19:12 +0200)] 
Fix bug in iso-week creation test

10 years agoMerge pull request #2054 from elad:develop
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

10 years agoMake sure updateOffset on creation won't cause infinite recursion
Iskren Chernev [Sun, 28 Dec 2014 16:51:46 +0000 (18:51 +0200)] 
Make sure updateOffset on creation won't cause infinite recursion

10 years agoCall updateOffset on moment creation
elad [Wed, 29 Oct 2014 15:12:12 +0000 (17:12 +0200)] 
Call updateOffset on moment creation

10 years agoMerge pull request #1950 from ichernev:bugfix/meridiem-in-locales
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

10 years agoAdd meridiemHour to locales that need it 1950/head
Iskren Chernev [Fri, 26 Dec 2014 10:27:05 +0000 (12:27 +0200)] 
Add meridiemHour to locales that need it

10 years agoSupport meridiemHour in locales
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

10 years agoFix parsing of meridiem in locales that have meridiem
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.

10 years agoStyle fixes
Iskren Chernev [Fri, 26 Dec 2014 09:00:14 +0000 (01:00 -0800)] 
Style fixes

10 years agoRevert "Merge pull request #2054 from elad:develop"
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.

10 years agoStyle fixes
Iskren Chernev [Thu, 25 Dec 2014 11:02:08 +0000 (03:02 -0800)] 
Style fixes

10 years agoMerge pull request #1809 from jordansexton:develop
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

10 years agoAdding tests for 67c9506
Jordan Sexton [Wed, 30 Jul 2014 05:50:43 +0000 (00:50 -0500)] 
Adding tests for 67c9506

10 years agoAllowing moment.set() to accept a hash of units
Jordan Sexton [Wed, 30 Jul 2014 05:46:31 +0000 (00:46 -0500)] 
Allowing moment.set() to accept a hash of units

10 years agoMerge pull request #1825 from dyro:develop
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

10 years agoImplemented toJSON function on Duration so JSON.stringify returns the ISO string...
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

10 years agoMerge pull request #1893 from ichernev:is-date
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

10 years agoAdd moment.isDate method
Iskren Chernev [Fri, 29 Aug 2014 15:12:59 +0000 (18:12 +0300)] 
Add moment.isDate method

10 years agoMerge pull request #1963 from ichernev:amd-export
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

10 years agoUse 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

10 years agoMerge pull request #2054 from elad:develop
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

10 years agoBetter approach for keeping timezone from @timrwood.
elad [Fri, 31 Oct 2014 06:58:09 +0000 (08:58 +0200)] 
Better approach for keeping timezone from @timrwood.

10 years agoPropagate a _zn property if it exists and update offset by default.
elad [Wed, 29 Oct 2014 15:12:12 +0000 (17:12 +0200)] 
Propagate a _zn property if it exists and update offset by default.

10 years agoMerge pull request #2066 from MeteorPackaging:patch-3
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.

10 years agoUniform 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.

10 years agoMerge pull request #2074 from ichernev:utc-offset
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

10 years agoFix a few broken tests in UTC timezone
Iskren Chernev [Mon, 1 Dec 2014 07:52:32 +0000 (07:52 +0000)] 
Fix a few broken tests in UTC timezone

10 years agoConvert all zone tests to utc offset
Iskren Chernev [Fri, 28 Nov 2014 08:20:29 +0000 (00:20 -0800)] 
Convert all zone tests to utc offset

10 years agooffset -> utc_offset
Iskren Chernev [Fri, 28 Nov 2014 07:12:44 +0000 (23:12 -0800)] 
offset -> utc_offset

10 years agoSwitch zone to utcOffset in some tests
Iskren Chernev [Fri, 28 Nov 2014 07:10:06 +0000 (23:10 -0800)] 
Switch zone to utcOffset in some tests

10 years agoRemove zone from comments
Iskren Chernev [Fri, 28 Nov 2014 06:32:13 +0000 (22:32 -0800)] 
Remove zone from comments

10 years agoDeprecate zone function in favor of utcOffset
Iskren Chernev [Fri, 28 Nov 2014 06:24:54 +0000 (22:24 -0800)] 
Deprecate zone function in favor of utcOffset

10 years agoAdd isLocal(), isUtc() == isUTC(), isUtcOffset()
Iskren Chernev [Sun, 23 Nov 2014 09:36:55 +0000 (01:36 -0800)] 
Add isLocal(), isUtc() == isUTC(), isUtcOffset()

10 years agoImplement moment.fn.utcOffset, base moment.fn.zone on top
Iskren Chernev [Sun, 23 Nov 2014 09:26:45 +0000 (01:26 -0800)] 
Implement moment.fn.utcOffset, base moment.fn.zone on top

10 years agoStyle changes in tests
Iskren Chernev [Sun, 23 Nov 2014 09:24:53 +0000 (01:24 -0800)] 
Style changes in tests

10 years agoMerge pull request #2088 from stoeffel:develop
Iskren Chernev [Wed, 24 Dec 2014 21:28:44 +0000 (13:28 -0800)] 
Merge pull request #2088 from stoeffel:develop

add isBetween

10 years agoadd isBetween
Christoph Hermann [Mon, 8 Dec 2014 21:15:13 +0000 (22:15 +0100)] 
add isBetween

closes #2087

10 years agoMerge pull request #2090 from amire80:esrim-shana
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

10 years agoChanged if to else if
Amir E. Aharoni [Tue, 9 Dec 2014 07:03:39 +0000 (09:03 +0200)] 
Changed if to else if

According to @tomer's suggestion.

10 years agoAdd a special case for years in Hebrew locale
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.

10 years agoMerge pull request #2097 from tunpixel:develop
Iskren Chernev [Wed, 24 Dec 2014 21:25:24 +0000 (13:25 -0800)] 
Merge pull request #2097 from tunpixel:develop

add ar-tn locale

10 years agoadd ar-tn locale
Nader Toukabri [Thu, 11 Dec 2014 15:47:49 +0000 (16:47 +0100)] 
add ar-tn locale

10 years agoMerge pull request #2098 from ichernev:nuget
Iskren Chernev [Wed, 24 Dec 2014 21:24:50 +0000 (13:24 -0800)] 
Merge pull request #2098 from ichernev:nuget

Add nuget publishing support

10 years agoAdd nuget publishing support
Iskren Chernev [Sun, 14 Dec 2014 21:27:25 +0000 (13:27 -0800)] 
Add nuget publishing support

10 years agoMerge pull request #2104 from robin0van0der0v:patch-1
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

10 years agoUpdate fy.js
Robin van der Vliet [Tue, 16 Dec 2014 22:06:37 +0000 (23:06 +0100)] 
Update fy.js

10 years agoCreate fy.js
Robin van der Vliet [Tue, 16 Dec 2014 21:53:58 +0000 (22:53 +0100)] 
Create fy.js

10 years agoCreate fy.js
Robin van der Vliet [Tue, 16 Dec 2014 21:53:15 +0000 (22:53 +0100)] 
Create fy.js

10 years agoMerge pull request #2117 from butterflyhug:global-scope-hack
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

10 years agoAdd globalScope hack to more reliably distinguish Node vs browser 2117/head
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`.

10 years agoUse JavaScript instead of javascript in pkg descriptions
Iskren Chernev [Mon, 1 Dec 2014 07:58:05 +0000 (07:58 +0000)] 
Use JavaScript instead of javascript in pkg descriptions

10 years agoMerge pull request #2073 from MeteorPackaging/meteor-integration
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

10 years agoSeparate meteor-publish task, and depend on latest spacejam 2073/head
Dan Dascalescu [Sun, 30 Nov 2014 20:24:44 +0000 (12:24 -0800)] 
Separate meteor-publish task, and depend on latest spacejam

10 years agoGet rid of the .sh scripts; target all Meteor versions
Dan Dascalescu [Sun, 30 Nov 2014 07:15:34 +0000 (23:15 -0800)] 
Get rid of the .sh scripts; target all Meteor versions

10 years agoMore fixes on meteor/publish
Iskren Chernev [Sat, 29 Nov 2014 19:26:24 +0000 (11:26 -0800)] 
More fixes on meteor/publish

10 years agoMerge pull request #2062 from dandv/develop
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.

10 years agoGrunt task to meteor publish; improved scripts 2062/head
Dan Dascalescu [Sat, 29 Nov 2014 11:11:59 +0000 (03:11 -0800)] 
Grunt task to meteor publish; improved scripts

10 years agoFix Meteor integration and make more robust
Dan Dascalescu [Mon, 24 Nov 2014 03:04:58 +0000 (19:04 -0800)] 
Fix Meteor integration and make more robust

10 years agoFix meteor/publish script
Iskren Chernev [Sun, 23 Nov 2014 05:44:44 +0000 (21:44 -0800)] 
Fix meteor/publish script

10 years agoUpdate bump_version script to work with meteor package
Iskren Chernev [Thu, 20 Nov 2014 18:12:11 +0000 (10:12 -0800)] 
Update bump_version script to work with meteor package

10 years agoMerge pull request #2059 from dandv/develop
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

10 years agoAdd packaging for Meteor.js 2059/head
Dan Dascalescu [Wed, 19 Nov 2014 11:10:51 +0000 (03:10 -0800)] 
Add packaging for Meteor.js

10 years agoBuild 2.8.4 2.8.4
Iskren Chernev [Wed, 19 Nov 2014 04:22:17 +0000 (20:22 -0800)] 
Build 2.8.4

10 years agoBump version to 2.8.4
Iskren Chernev [Wed, 19 Nov 2014 04:20:47 +0000 (20:20 -0800)] 
Bump version to 2.8.4

10 years agoUpdate changelog for 2.8.4
Iskren Chernev [Wed, 19 Nov 2014 04:19:42 +0000 (20:19 -0800)] 
Update changelog for 2.8.4

10 years agoFix global detection in tests
Iskren Chernev [Mon, 17 Nov 2014 18:26:35 +0000 (10:26 -0800)] 
Fix global detection in tests

10 years agoMerge pull request #1933 from szelga:fix-1876
Iskren Chernev [Mon, 17 Nov 2014 17:31:42 +0000 (09:31 -0800)] 
Merge pull request #1933 from szelga:fix-1876

fix #1876

10 years agoShorten switch statement
Iskren Chernev [Mon, 17 Nov 2014 17:31:14 +0000 (09:31 -0800)] 
Shorten switch statement

10 years agosee https://github.com/moment/moment/pull/1933#issuecomment-63302299
Wasil W Siargiejczyk [Mon, 17 Nov 2014 13:49:03 +0000 (18:49 +0500)] 
see https://github.com/moment/moment/pull/1933#issuecomment-63302299

10 years agosee https://github.com/moment/moment/pull/1933#discussion_r18125806
Wasil W Siargiejczyk [Sun, 28 Sep 2014 06:53:38 +0000 (12:53 +0600)] 
see https://github.com/moment/moment/pull/1933#discussion_r18125806

10 years agoadd accusative condition for Russian locale, fix #1876
Wasil W Siargiejczyk [Sun, 21 Sep 2014 11:06:13 +0000 (17:06 +0600)] 
add accusative condition for Russian locale, fix #1876

10 years agomodify tests for Russian locale
Wasil W Siargiejczyk [Sun, 21 Sep 2014 11:05:07 +0000 (17:05 +0600)] 
modify tests for Russian locale

10 years agoalter Russian locale
Wasil W Siargiejczyk [Sun, 21 Sep 2014 10:09:30 +0000 (16:09 +0600)] 
alter Russian locale

10 years agopass present moment to a calendar function
Wasil W Siargiejczyk [Sun, 21 Sep 2014 09:53:32 +0000 (15:53 +0600)] 
pass present moment to a calendar function

10 years agoallow passing additional arguments to calendar function
Wasil W Siargiejczyk [Sun, 21 Sep 2014 09:50:35 +0000 (15:50 +0600)] 
allow passing additional arguments to calendar function

10 years agoMerge pull request #2016 from radekdostal:develop
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

10 years agoFix 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.

10 years agoMerge pull request #2009 from elliotf:fall_back_to_native_toISOString
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

10 years agoTake advantage of native speed 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

10 years agoMerge pull request #2010 from butterflyhug:fix-locale-warning
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()

10 years agoUpdate 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.

10 years agoMerge pull request #1961 from ichernev:add-npm-cleanup-script
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

10 years agoUse whitelist instead of blacklist
Iskren Chernev [Thu, 9 Oct 2014 09:22:55 +0000 (02:22 -0700)] 
Use whitelist instead of blacklist

10 years agoAdd a script to prepare moment for npm publish
Iskren Chernev [Tue, 7 Oct 2014 05:42:13 +0000 (22:42 -0700)] 
Add a script to prepare moment for npm publish

10 years agoMerge pull request #1925 from jsmreese:fix-duration-as-getters
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)

10 years agowhitespace
John Madhavan-Reese [Sat, 13 Sep 2014 04:46:21 +0000 (00:46 -0400)] 
whitespace

10 years agowhitespace
John Madhavan-Reese [Sat, 13 Sep 2014 04:23:27 +0000 (00:23 -0400)] 
whitespace

10 years agoRemoved old duration as getter tests.
John Madhavan-Reese [Sat, 13 Sep 2014 04:18:30 +0000 (00:18 -0400)] 
Removed old duration as getter tests.

10 years agoAdded new duration as getter tests.
John Madhavan-Reese [Sat, 13 Sep 2014 04:17:24 +0000 (00:17 -0400)] 
Added new duration as getter tests.

10 years agoUse Math.round instead of Math.floor for more realistic days output.
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.

10 years agoComment out old duration as getter tests.
John Madhavan-Reese [Fri, 12 Sep 2014 21:05:33 +0000 (17:05 -0400)] 
Comment out old duration as getter tests.

10 years agoRound yearsToDays output to a whole number.
John Madhavan-Reese [Fri, 12 Sep 2014 21:00:07 +0000 (17:00 -0400)] 
Round yearsToDays output to a whole number.

10 years agoMerge pull request #2008 from ichernev:fix-end-of
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

10 years agoFix 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

10 years agoMerge pull request #2003 from ichernev:detect-big-hours
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

10 years agoDetect 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

10 years agoMerge pull request #2002 from ichernev:accept-date-key-object
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