]> git.ipfire.org Git - thirdparty/moment.git/log
thirdparty/moment.git
9 years agoRussian locale: make first characters of names uncapitalized 2907/head
Коренберг Марк (imac) [Tue, 19 Jan 2016 19:09:42 +0000 (00:09 +0500)] 
Russian locale: make first characters of names uncapitalized

Closes issue #2882
Reverts 80fa7c5621797591e81b49c48621f53e858737a5 (issue #2569)

9 years agoBuild 2.11.2 2.11.2
Iskren Chernev [Wed, 3 Feb 2016 22:43:05 +0000 (14:43 -0800)] 
Build 2.11.2

9 years agoBump version to 2.11.2
Iskren Chernev [Wed, 3 Feb 2016 22:41:54 +0000 (14:41 -0800)] 
Bump version to 2.11.2

9 years agoUpdate changelog for 2.11.2
Iskren Chernev [Wed, 3 Feb 2016 22:41:13 +0000 (14:41 -0800)] 
Update changelog for 2.11.2

9 years agoMerge pull request #2939 from rvagg:regex-dos-no-more
Iskren Chernev [Wed, 3 Feb 2016 22:38:11 +0000 (14:38 -0800)] 
Merge pull request #2939 from rvagg:regex-dos-no-more

use full-string match to speed up aspnet regex match

9 years agouse full-string match to speed up C# duration match 2939/head
Rod Vagg [Tue, 2 Feb 2016 07:01:31 +0000 (18:01 +1100)] 
use full-string match to speed up C# duration match

Fixes: https://github.com/moment/moment/issues/2936
9 years agoMerge pull request #2778 from nickmerwin/patch-1
Matt Johnson [Sat, 16 Jan 2016 00:44:56 +0000 (16:44 -0800)] 
Merge pull request #2778 from nickmerwin/patch-1

Coveralls badge should use develop branch

9 years agoBuild 2.11.1 2.11.1
Iskren Chernev [Sat, 9 Jan 2016 13:13:07 +0000 (15:13 +0200)] 
Build 2.11.1

9 years agoBump version to 2.11.1
Iskren Chernev [Sat, 9 Jan 2016 13:11:33 +0000 (15:11 +0200)] 
Bump version to 2.11.1

9 years agoUpdate changelog 2.11.1
Iskren Chernev [Sat, 9 Jan 2016 13:10:52 +0000 (15:10 +0200)] 
Update changelog 2.11.1

9 years agoFix IE8 test bug
Iskren Chernev [Sat, 9 Jan 2016 12:54:38 +0000 (14:54 +0200)] 
Fix IE8 test bug

9 years agoMerge pull request #2869 from ichernev:per-locale-month-regex
Iskren Chernev [Sat, 9 Jan 2016 12:41:26 +0000 (14:41 +0200)] 
Merge pull request #2869 from ichernev:per-locale-month-regex

Fix months parsing for stranger locales

9 years agoregex-escape months for exactMonthsParse (incomplete)
Iskren Chernev [Sat, 9 Jan 2016 11:05:19 +0000 (13:05 +0200)] 
regex-escape months for exactMonthsParse (incomplete)

9 years agoSort month names by reverse length when constructing month parse regex
Iskren Chernev [Sat, 9 Jan 2016 10:09:53 +0000 (12:09 +0200)] 
Sort month names by reverse length when constructing month parse regex

9 years agoFix months parsing for stranger locales
Iskren Chernev [Wed, 6 Jan 2016 23:44:36 +0000 (01:44 +0200)] 
Fix months parsing for stranger locales

9 years agoMerge pull request #2830 from TheAlphaNerd:add-grunt-cli
Iskren Chernev [Sat, 9 Jan 2016 09:51:06 +0000 (11:51 +0200)] 
Merge pull request #2830 from TheAlphaNerd:add-grunt-cli

dep: add grunt-cli

9 years agodep: add grunt-cli
Myles Borins [Tue, 22 Dec 2015 22:43:48 +0000 (14:43 -0800)] 
dep: add grunt-cli

currently the project relies on grunt-cli to run unit tests.
There are no instructions in the readme to inform developers of this dependency.

This PR adds grunt-cli to the dev-dependencies for a more seamless development
process. This PR will also make moment compatible with [CITGM](https://github.com/nodejs/citgm)
the node.js smoketesting utility. This will allow moment's unit test suite to
be ran against every release of Node.js, giving us an opportunity to give you a heads
up if anything breaks before a release.

9 years agoMerge pull request #2864 from SimenB:patch-1
Iskren Chernev [Sat, 9 Jan 2016 09:49:40 +0000 (11:49 +0200)] 
Merge pull request #2864 from SimenB:patch-1

Include changelog in npm release

9 years agoInclude changelog in npm release
Simen Bekkhus [Tue, 5 Jan 2016 12:23:47 +0000 (13:23 +0100)] 
Include changelog in npm release

9 years agoUpdate copyright to 2016
Iskren Chernev [Sat, 9 Jan 2016 09:46:31 +0000 (11:46 +0200)] 
Update copyright to 2016

9 years agoMerge pull request #2858 from nowells:global-date
Iskren Chernev [Sat, 9 Jan 2016 09:42:27 +0000 (11:42 +0200)] 
Merge pull request #2858 from nowells:global-date

Fix Date mocking regression introduced in 2.11.0

9 years agoFix Date mocking regression introduced in 2.11.0
Nowell Strite [Mon, 4 Jan 2016 14:47:23 +0000 (09:47 -0500)] 
Fix Date mocking regression introduced in 2.11.0

The commit https://github.com/moment/moment/commit/f54a32f4c62c12a710335211a73cb002a7249646 and the follow on refactoring https://github.com/moment/moment/commit/b1d686ed481e2211cb81a1c60eca850fcea93f21 broke the ability for Date mocking libraries ([MockDate](https://www.npmjs.com/package/mockdate), SinonJS, etc.) to mock out the Date object. I believe we should restore this functionality.

```js
const moment = require('moment'),
    mockdate = require('mockdate'),
    frozenTime = moment();

mockdate.set(frozenTime);
console.log('Frozen time: ', frozenTime.toISOString());

setTimeout(function() {
    console.log('Moment time: ', moment().toISOString());
}, 1000);
```

Running the code above will yield the following in `moment@2.10.6` and `moment@2.11.0` respectively.

```bash
$ node index.js
Frozen time:  2016-01-04T14:21:55.335Z
Moment time:  2016-01-04T14:21:55.335Z

$ node index.js
Frozen time:  2016-01-04T14:21:55.335Z
Moment time:  2016-01-04T14:21:56.355Z
```

- Fixes #2857
- Fixes #2855

9 years agoMerge pull request #2865 from ichernev:fix-undefined-checks
Iskren Chernev [Sat, 9 Jan 2016 09:38:04 +0000 (11:38 +0200)] 
Merge pull request #2865 from ichernev:fix-undefined-checks

Use typeof checks for undefined for global variables

9 years agoFix lint issues
Iskren Chernev [Wed, 6 Jan 2016 22:27:58 +0000 (00:27 +0200)] 
Fix lint issues

9 years agoUse typeof checks for undefined for global variables
Iskren Chernev [Tue, 5 Jan 2016 19:15:46 +0000 (21:15 +0200)] 
Use typeof checks for undefined for global variables

9 years agoMerge pull request #2868 from ichernev:fix-y-token
Iskren Chernev [Sat, 9 Jan 2016 09:36:35 +0000 (11:36 +0200)] 
Merge pull request #2868 from ichernev:fix-y-token

Add format and parse token Y, so it actually works

9 years agoApply PR comments
Iskren Chernev [Sat, 9 Jan 2016 09:31:26 +0000 (11:31 +0200)] 
Apply PR comments

9 years agoAdd format and parse token Y, so it actually works
Iskren Chernev [Wed, 6 Jan 2016 22:24:28 +0000 (00:24 +0200)] 
Add format and parse token Y, so it actually works

9 years agoMerge pull request #2881 from ichernev:revert-sept
Iskren Chernev [Sat, 9 Jan 2016 09:33:32 +0000 (11:33 +0200)] 
Merge pull request #2881 from ichernev:revert-sept

Revert "Merge pull request #2746 from mbad0la:develop" Sep->Sept

9 years agoRevert "Merge pull request #2746 from mbad0la:develop" 2881/head
Iskren Chernev [Sat, 9 Jan 2016 09:07:51 +0000 (11:07 +0200)] 
Revert "Merge pull request #2746 from mbad0la:develop"

This reverts commit 9ea2d6b1a86d59b36bce792771cffc3f85b382b0, reversing
changes made to f52a86863dd1fc638501b5f4b4fbe371f8fa725d.

9 years agoAdd commented console log that helps with debugging
Iskren Chernev [Sat, 9 Jan 2016 09:05:30 +0000 (11:05 +0200)] 
Add commented console log that helps with debugging

9 years agoRebuild 2.11.0 2.11.0
Iskren Chernev [Sat, 2 Jan 2016 23:30:23 +0000 (01:30 +0200)] 
Rebuild 2.11.0

9 years agoFix broken week-year test
Iskren Chernev [Sat, 2 Jan 2016 23:28:47 +0000 (01:28 +0200)] 
Fix broken week-year test

9 years agoBuild 2.11.0
Iskren Chernev [Thu, 31 Dec 2015 13:13:35 +0000 (15:13 +0200)] 
Build 2.11.0

9 years agoBump version to 2.11.0
Iskren Chernev [Thu, 31 Dec 2015 12:48:17 +0000 (14:48 +0200)] 
Bump version to 2.11.0

9 years agoUpdate changelog for 2.11.0
Iskren Chernev [Thu, 31 Dec 2015 12:46:54 +0000 (14:46 +0200)] 
Update changelog for 2.11.0

9 years agoFix issues in ca, tlh and tzl locale
Iskren Chernev [Thu, 31 Dec 2015 13:04:56 +0000 (15:04 +0200)] 
Fix issues in ca, tlh and tzl locale

9 years agoCheck all locales for bad expanded tokens
Iskren Chernev [Thu, 31 Dec 2015 12:59:00 +0000 (14:59 +0200)] 
Check all locales for bad expanded tokens

9 years agoMerge pull request #2842 from ichernev:fix-ie8
Iskren Chernev [Thu, 31 Dec 2015 11:41:48 +0000 (13:41 +0200)] 
Merge pull request #2842 from ichernev:fix-ie8

Fix broken tests in IE8

9 years agoDo not depend on Date to parse an ISO string for IE8 compat 2842/head
Iskren Chernev [Thu, 31 Dec 2015 09:59:51 +0000 (11:59 +0200)] 
Do not depend on Date to parse an ISO string for IE8 compat

9 years agoDo not use Object.keys and [].forEach for IE8 compat
Iskren Chernev [Thu, 31 Dec 2015 09:59:33 +0000 (11:59 +0200)] 
Do not use Object.keys and [].forEach for IE8 compat

9 years agoDo not use String.trim for IE8 compat
Iskren Chernev [Thu, 31 Dec 2015 09:58:43 +0000 (11:58 +0200)] 
Do not use String.trim for IE8 compat

9 years agoDo not use substr(-1) for IE8 compat
Iskren Chernev [Thu, 31 Dec 2015 09:58:22 +0000 (11:58 +0200)] 
Do not use substr(-1) for IE8 compat

9 years agoFix ISO matching for IE8
Iskren Chernev [Thu, 31 Dec 2015 09:57:52 +0000 (11:57 +0200)] 
Fix ISO matching for IE8

9 years agoFix saucelabs config for Edge and IE
Iskren Chernev [Tue, 29 Dec 2015 18:41:13 +0000 (20:41 +0200)] 
Fix saucelabs config for Edge and IE

9 years agoMerge pull request #2835 from ichernev:add-strict-creation-data
Iskren Chernev [Tue, 29 Dec 2015 18:12:52 +0000 (20:12 +0200)] 
Merge pull request #2835 from ichernev:add-strict-creation-data

Add strict field to creationData

9 years agoAdd strict field to creationData
Iskren Chernev [Sun, 27 Dec 2015 11:53:29 +0000 (13:53 +0200)] 
Add strict field to creationData

9 years agoMerge pull request #2833 from ichernev:fix-now
Iskren Chernev [Tue, 29 Dec 2015 18:05:46 +0000 (20:05 +0200)] 
Merge pull request #2833 from ichernev:fix-now

Use moment.now instead of moment.fn.now for changing time source

9 years agoUse moment.now instead of moment.fn.now for changing time source 2833/head
Iskren Chernev [Fri, 25 Dec 2015 14:44:10 +0000 (16:44 +0200)] 
Use moment.now instead of moment.fn.now for changing time source

9 years agoFix forgotten merge note in #2646
Iskren Chernev [Wed, 23 Dec 2015 04:38:42 +0000 (20:38 -0800)] 
Fix forgotten merge note in #2646

9 years agoMerge pull request #2666 from amaranthrose/klingon_tlh_locale
Matt Johnson [Fri, 18 Dec 2015 14:36:04 +0000 (06:36 -0800)] 
Merge pull request #2666 from amaranthrose/klingon_tlh_locale

Adds klingon(tlh) locale

9 years agoAdds klingon(tlh) locale 2666/head
Dominika [Sun, 11 Oct 2015 12:26:34 +0000 (14:26 +0200)] 
Adds klingon(tlh) locale

9 years agoMerge pull request #2799 from clairecoloma:develop
Iskren Chernev [Wed, 9 Dec 2015 08:38:02 +0000 (00:38 -0800)] 
Merge pull request #2799 from clairecoloma:develop

Remove caps in spanish month and days

9 years agorevert local file
Claire Coloma [Tue, 8 Dec 2015 17:31:16 +0000 (18:31 +0100)] 
revert local file

9 years agoRemove caps in spanish month and days
Claire Coloma [Tue, 8 Dec 2015 14:38:08 +0000 (15:38 +0100)] 
Remove caps in spanish month and days

9 years agoMerge pull request #2794 from SwamWithTurtles:develop
Iskren Chernev [Wed, 9 Dec 2015 08:34:38 +0000 (00:34 -0800)] 
Merge pull request #2794 from SwamWithTurtles:develop

Tests shouldn't fail on non-whole hour offsets:

9 years agoRemove checked in IDEA files
David Simons [Sun, 6 Dec 2015 13:01:02 +0000 (20:01 +0700)] 
Remove checked in IDEA files

9 years agoRemove now unused tz_hour variable
David Simons [Sun, 6 Dec 2015 13:00:38 +0000 (20:00 +0700)] 
Remove now unused tz_hour variable

9 years agoRemove northern hemisphere dependent tests
David Simons [Sun, 6 Dec 2015 12:55:54 +0000 (19:55 +0700)] 
Remove northern hemisphere dependent tests

9 years agoMake tests involving hours-only off-set pass when non-whole hour offsets
David Simons [Sun, 6 Dec 2015 12:55:20 +0000 (19:55 +0700)] 
Make tests involving hours-only off-set pass when non-whole hour offsets

9 years agoMerge pull request #2786 from manveru:develop
Iskren Chernev [Wed, 9 Dec 2015 08:26:03 +0000 (00:26 -0800)] 
Merge pull request #2786 from manveru:develop

Don't treat string offsets like ints

9 years agodon't treat string offsets like ints
Michael Fellinger [Tue, 1 Dec 2015 20:28:16 +0000 (21:28 +0100)] 
don't treat string offsets like ints

9 years agoMerge pull request #2777 from johanneswuerbach:two-digit-time-zone
Iskren Chernev [Wed, 9 Dec 2015 08:23:39 +0000 (00:23 -0800)] 
Merge pull request #2777 from johanneswuerbach:two-digit-time-zone

Tests for two-digit time zone offsets

9 years agoTests for two-digit time zone offsets
Johannes Würbach [Fri, 27 Nov 2015 19:07:05 +0000 (20:07 +0100)] 
Tests for two-digit time zone offsets

9 years agoMerge pull request #2773 from rclanan:develop
Iskren Chernev [Wed, 9 Dec 2015 08:16:29 +0000 (00:16 -0800)] 
Merge pull request #2773 from rclanan:develop

New isUndefined utility method

9 years agoNew isUndefined utility method
Ray Clanan [Thu, 26 Nov 2015 02:23:31 +0000 (20:23 -0600)] 
New isUndefined utility method

Updated all test for undefined to use new utility method isUndefined

9 years agoMerge pull request #2766 from notebowl:alternate-clock-source-support
Iskren Chernev [Wed, 9 Dec 2015 08:13:33 +0000 (00:13 -0800)] 
Merge pull request #2766 from notebowl:alternate-clock-source-support

Alternate Clock Source Support

9 years agoFix tests for all timezones
Iskren Chernev [Wed, 9 Dec 2015 08:13:26 +0000 (00:13 -0800)] 
Fix tests for all timezones

9 years agodoes build server use UTC time?
Aaron Ogata [Sun, 22 Nov 2015 23:16:04 +0000 (16:16 -0700)] 
does build server use UTC time?

9 years agoimplement support for retrieving current date from alternate clock sources
Aaron Ogata [Sun, 22 Nov 2015 22:37:47 +0000 (15:37 -0700)] 
implement support for retrieving current date from alternate clock sources

9 years agoMerge pull request #2746 from mbad0la:develop
Iskren Chernev [Wed, 9 Dec 2015 07:13:45 +0000 (23:13 -0800)] 
Merge pull request #2746 from mbad0la:develop

Changed September Abbreviation to "Sept" in locale-specific english files and default locale file

9 years agoFix monthParse functions for en family
Iskren Chernev [Wed, 9 Dec 2015 07:13:26 +0000 (23:13 -0800)] 
Fix monthParse functions for en family

9 years agoUpdate en.js
Mayank Badola [Fri, 13 Nov 2015 08:51:29 +0000 (14:21 +0530)] 
Update en.js

9 years agoAdded Sep/Sept parsing test
Mayank Badola [Fri, 13 Nov 2015 07:33:42 +0000 (13:03 +0530)] 
Added Sep/Sept parsing test

9 years agoUpdate en-ca.js
Mayank Badola [Fri, 13 Nov 2015 07:19:57 +0000 (12:49 +0530)] 
Update en-ca.js

9 years agoUpdate en-gb.js
Mayank Badola [Fri, 13 Nov 2015 07:19:51 +0000 (12:49 +0530)] 
Update en-gb.js

9 years agoUpdate en-nz.js
Mayank Badola [Fri, 13 Nov 2015 07:19:47 +0000 (12:49 +0530)] 
Update en-nz.js

9 years agoUpdate en-au.js
Mayank Badola [Fri, 13 Nov 2015 07:15:46 +0000 (12:45 +0530)] 
Update en-au.js

9 years agoUpdate is_valid.js
Mayank Badola [Thu, 12 Nov 2015 19:16:39 +0000 (00:46 +0530)] 
Update is_valid.js

9 years agoUpdate create.js
Mayank Badola [Thu, 12 Nov 2015 19:01:00 +0000 (00:31 +0530)] 
Update create.js

9 years agoUpdate create.js
Mayank Badola [Thu, 12 Nov 2015 18:27:15 +0000 (23:57 +0530)] 
Update create.js

9 years agoUpdate listers.js
Mayank Badola [Thu, 12 Nov 2015 18:10:26 +0000 (23:40 +0530)] 
Update listers.js

9 years agoUpdate en.js
Mayank Badola [Thu, 12 Nov 2015 17:59:29 +0000 (23:29 +0530)] 
Update en.js

9 years agoUpdate en-nz.js
Mayank Badola [Thu, 12 Nov 2015 17:10:17 +0000 (22:40 +0530)] 
Update en-nz.js

9 years agoUpdate en-gb.js
Mayank Badola [Thu, 12 Nov 2015 17:08:57 +0000 (22:38 +0530)] 
Update en-gb.js

9 years agoUpdate en-ca.js
Mayank Badola [Thu, 12 Nov 2015 17:08:42 +0000 (22:38 +0530)] 
Update en-ca.js

9 years agoUpdate en-au.js
Mayank Badola [Thu, 12 Nov 2015 17:06:52 +0000 (22:36 +0530)] 
Update en-au.js

9 years agoUpdate month.js
Mayank Badola [Thu, 12 Nov 2015 06:44:37 +0000 (12:14 +0530)] 
Update month.js

9 years agoUpdate en-au.js
Mayank Badola [Thu, 12 Nov 2015 06:41:38 +0000 (12:11 +0530)] 
Update en-au.js

9 years agoUpdate en-ca.js
Mayank Badola [Thu, 12 Nov 2015 06:41:26 +0000 (12:11 +0530)] 
Update en-ca.js

9 years agoUpdate en-gb.js
Mayank Badola [Thu, 12 Nov 2015 06:41:15 +0000 (12:11 +0530)] 
Update en-gb.js

9 years agoUpdate en-nz.js
Mayank Badola [Thu, 12 Nov 2015 06:40:58 +0000 (12:10 +0530)] 
Update en-nz.js

9 years agoMerge pull request #2744 from mj1856:setFullYear
Iskren Chernev [Wed, 9 Dec 2015 06:53:35 +0000 (22:53 -0800)] 
Merge pull request #2744 from mj1856:setFullYear

Only call setFullYear when necessary

9 years agoOnly call setFullYear when necessary
Matt Johnson [Tue, 10 Nov 2015 06:14:30 +0000 (22:14 -0800)] 
Only call setFullYear when necessary

9 years agoMerge pull request #2741 from ichernev:fix-cases
Iskren Chernev [Wed, 9 Dec 2015 06:52:09 +0000 (22:52 -0800)] 
Merge pull request #2741 from ichernev:fix-cases

Fix cases in Croatian

9 years agoFix hr accusative/nominative
Iskren Chernev [Mon, 9 Nov 2015 09:52:53 +0000 (01:52 -0800)] 
Fix hr accusative/nominative

9 years agoBetter support for accusative/nominative months and long weekdays
Iskren Chernev [Mon, 9 Nov 2015 09:52:35 +0000 (01:52 -0800)] 
Better support for accusative/nominative months and long weekdays

9 years agoMerge pull request #2740 from ichernev:duration-format
Iskren Chernev [Wed, 9 Dec 2015 06:48:07 +0000 (22:48 -0800)] 
Merge pull request #2740 from ichernev:duration-format

Enable 'd hh:mm:ss.sss' format for durations

9 years agoEnable 'd hh:mm:ss.sss' format for durations
Iskren Chernev [Mon, 9 Nov 2015 06:35:36 +0000 (22:35 -0800)] 
Enable 'd hh:mm:ss.sss' format for durations

Fix #2342

9 years agoMerge pull request #2739 from ichernev:semicolon-before-iife
Iskren Chernev [Wed, 9 Dec 2015 06:46:17 +0000 (22:46 -0800)] 
Merge pull request #2739 from ichernev:semicolon-before-iife

Add ; before each main file's IIFE