]> git.ipfire.org Git - thirdparty/moment.git/log
thirdparty/moment.git
10 years agoAdd duration.fn back 2312/head
Iskren Chernev [Wed, 8 Apr 2015 02:39:51 +0000 (19:39 -0700)] 
Add duration.fn back

10 years agoUpdate CONTRIBUTING.md with es6 grunt tasks
Iskren Chernev [Tue, 7 Apr 2015 16:26:54 +0000 (09:26 -0700)] 
Update CONTRIBUTING.md with es6 grunt tasks

10 years agoAdd info about co-maintainers in README
Iskren Chernev [Tue, 7 Apr 2015 16:22:32 +0000 (09:22 -0700)] 
Add info about co-maintainers in README

10 years agoFix jscs issues
Iskren Chernev [Tue, 7 Apr 2015 06:03:59 +0000 (23:03 -0700)] 
Fix jscs issues

10 years agoBuilt 2.10.0
Iskren Chernev [Tue, 7 Apr 2015 05:28:30 +0000 (22:28 -0700)] 
Built 2.10.0

10 years agoBump version to 2.10.0
Iskren Chernev [Tue, 7 Apr 2015 05:22:43 +0000 (22:22 -0700)] 
Bump version to 2.10.0

10 years agoUpdate changelog for 2.10.0
Iskren Chernev [Tue, 7 Apr 2015 05:20:01 +0000 (22:20 -0700)] 
Update changelog for 2.10.0

10 years agoMerge pull request #2168 from moment/feature/es6-modules
Iskren Ivov Chernev [Tue, 7 Apr 2015 05:18:15 +0000 (22:18 -0700)] 
Merge pull request #2168 from moment/feature/es6-modules

ES6 Modules

10 years agoRemove es6 notice from README 2168/head
Iskren Chernev [Wed, 25 Mar 2015 16:43:18 +0000 (09:43 -0700)] 
Remove es6 notice from README

10 years agoUpdate README with es6 instructions
Iskren Chernev [Wed, 25 Mar 2015 16:23:28 +0000 (09:23 -0700)] 
Update README with es6 instructions

10 years agoAdd npm test -> grunt test
Iskren Chernev [Wed, 25 Mar 2015 16:08:51 +0000 (09:08 -0700)] 
Add npm test -> grunt test

10 years agoRemove test/ (use grunt test)
Iskren Chernev [Wed, 25 Mar 2015 16:07:04 +0000 (09:07 -0700)] 
Remove test/ (use grunt test)

10 years agoAlso put build locales in locale/
Iskren Chernev [Wed, 25 Mar 2015 16:06:40 +0000 (09:06 -0700)] 
Also put build locales in locale/

10 years agoMake sure karma/sauce works with the new setup
Iskren Chernev [Wed, 25 Mar 2015 16:00:36 +0000 (09:00 -0700)] 
Make sure karma/sauce works with the new setup

10 years agoAdd min/tests.js to repo
Iskren Chernev [Wed, 25 Mar 2015 16:00:32 +0000 (09:00 -0700)] 
Add min/tests.js to repo

10 years agoFix jscs warnings in tasks
Iskren Chernev [Wed, 25 Mar 2015 15:12:51 +0000 (08:12 -0700)] 
Fix jscs warnings in tasks

10 years agoAdd custom language bundle support to grunt transpile
Iskren Chernev [Mon, 23 Mar 2015 16:26:28 +0000 (09:26 -0700)] 
Add custom language bundle support to grunt transpile

10 years agoBuild
Iskren Chernev [Mon, 23 Mar 2015 00:50:53 +0000 (17:50 -0700)] 
Build

10 years agogrunt update-index now copies min/tests.js too
Iskren Chernev [Mon, 23 Mar 2015 00:48:22 +0000 (17:48 -0700)] 
grunt update-index now copies min/tests.js too

10 years agoBetter logging in grunt transpile
Iskren Chernev [Mon, 23 Mar 2015 00:48:03 +0000 (17:48 -0700)] 
Better logging in grunt transpile

10 years agoMake jshint happy
Iskren Chernev [Mon, 23 Mar 2015 00:29:32 +0000 (17:29 -0700)] 
Make jshint happy

10 years agoIncrease qunit total time limit, just in case
Iskren Chernev [Mon, 23 Mar 2015 00:22:58 +0000 (17:22 -0700)] 
Increase qunit total time limit, just in case

10 years agoRemove broccoli
Iskren Chernev [Mon, 23 Mar 2015 00:22:05 +0000 (17:22 -0700)] 
Remove broccoli

10 years agoFix tests in karma/sauce
Iskren Chernev [Mon, 23 Mar 2015 00:20:38 +0000 (17:20 -0700)] 
Fix tests in karma/sauce

10 years agoFix grunt bump_version
Iskren Chernev [Sun, 22 Mar 2015 23:38:27 +0000 (16:38 -0700)] 
Fix grunt bump_version

10 years agoMinified files
Iskren Chernev [Sun, 22 Mar 2015 23:34:50 +0000 (16:34 -0700)] 
Minified files

10 years agoUpdate grunt default, grunt test and grunt travis
Iskren Chernev [Sun, 22 Mar 2015 23:18:56 +0000 (16:18 -0700)] 
Update grunt default, grunt test and grunt travis

10 years agoFix lazy loading on node.js
Iskren Chernev [Sun, 22 Mar 2015 23:10:49 +0000 (16:10 -0700)] 
Fix lazy loading on node.js

10 years agoFix jscs warnings in grunt tasks
Iskren Chernev [Sun, 22 Mar 2015 22:17:26 +0000 (15:17 -0700)] 
Fix jscs warnings in grunt tasks

10 years agoFix jscs errors
Iskren Chernev [Sun, 22 Mar 2015 22:06:41 +0000 (15:06 -0700)] 
Fix jscs errors

10 years agoReplace double with single quotes
Iskren Chernev [Sun, 22 Mar 2015 22:00:07 +0000 (15:00 -0700)] 
Replace double with single quotes

10 years agoUpdate grunt jscs
Iskren Chernev [Sun, 22 Mar 2015 22:17:13 +0000 (15:17 -0700)] 
Update grunt jscs

10 years agoFix jshint errors in grunt tasks
Iskren Chernev [Sun, 22 Mar 2015 21:42:12 +0000 (14:42 -0700)] 
Fix jshint errors in grunt tasks

10 years agoUpdate grunt jshint
Iskren Chernev [Sun, 22 Mar 2015 21:35:58 +0000 (14:35 -0700)] 
Update grunt jshint

10 years agoAdd grunt update-index to copy build products onto former source code locations
Iskren Chernev [Sun, 22 Mar 2015 21:22:16 +0000 (14:22 -0700)] 
Add grunt update-index to copy build products onto former source code locations

10 years agoFix random broken test (because its Sunday?)
Iskren Chernev [Sun, 22 Mar 2015 21:08:10 +0000 (14:08 -0700)] 
Fix random broken test (because its Sunday?)

10 years agoFix version in moment.js
Iskren Chernev [Sun, 22 Mar 2015 21:03:35 +0000 (14:03 -0700)] 
Fix version in moment.js

10 years agoGenerate moment-with-locales.js and locales.js bundles
Iskren Chernev [Tue, 3 Mar 2015 08:40:30 +0000 (00:40 -0800)] 
Generate moment-with-locales.js and locales.js bundles

10 years agoIncrease time limit in qtest
Iskren Chernev [Tue, 3 Mar 2015 08:40:02 +0000 (00:40 -0800)] 
Increase time limit in qtest

10 years agoPort test/locale/he.js to es6 (had utf-8 bom choking recast)
Iskren Chernev [Wed, 4 Feb 2015 10:51:40 +0000 (02:51 -0800)] 
Port test/locale/he.js to es6 (had utf-8 bom choking recast)

10 years agoPort all locale tests to es6
Iskren Chernev [Wed, 4 Feb 2015 10:31:50 +0000 (02:31 -0800)] 
Port all locale tests to es6

10 years agoFix src/locale (missing local variables)
Iskren Chernev [Wed, 4 Feb 2015 10:29:29 +0000 (02:29 -0800)] 
Fix src/locale (missing local variables)

10 years agoFix lazy loading locales for node.js
Iskren Chernev [Sat, 31 Jan 2015 09:50:08 +0000 (01:50 -0800)] 
Fix lazy loading locales for node.js

10 years agoConvert locales to es6, add locales to transpile task
Iskren Chernev [Fri, 30 Jan 2015 09:47:50 +0000 (01:47 -0800)] 
Convert locales to es6, add locales to transpile task

10 years agoMove es6 files to src, add transpile and qtest grunt tasks
Iskren Chernev [Fri, 30 Jan 2015 08:43:02 +0000 (00:43 -0800)] 
Move es6 files to src, add transpile and qtest grunt tasks

10 years agoPut back node hack for lazily loading locales
Iskren Chernev [Fri, 30 Jan 2015 06:51:10 +0000 (22:51 -0800)] 
Put back node hack for lazily loading locales

10 years agoClean up the defaults implementation.
Tim Wood [Thu, 22 Jan 2015 16:53:37 +0000 (08:53 -0800)] 
Clean up the defaults implementation.

10 years agoFinish a bunch of TODOs
Tim Wood [Thu, 22 Jan 2015 16:49:38 +0000 (08:49 -0800)] 
Finish a bunch of TODOs

10 years agoRemove T token
Tim Wood [Thu, 22 Jan 2015 16:39:52 +0000 (08:39 -0800)] 
Remove T token

10 years agoClean up jscs and jshint errors in tests.
Tim Wood [Sat, 17 Jan 2015 18:40:26 +0000 (10:40 -0800)] 
Clean up jscs and jshint errors in tests.

10 years agoConvert moment.js to ES6 modules.
Tim Wood [Sun, 11 Jan 2015 19:15:03 +0000 (11:15 -0800)] 
Convert moment.js to ES6 modules.

10 years agoAdd Broccoli build pipeline.
Tim Wood [Sun, 11 Jan 2015 19:14:35 +0000 (11:14 -0800)] 
Add Broccoli build pipeline.

10 years agoSwitch core tests to QUnit and es6 modules.
Tim Wood [Sun, 11 Jan 2015 18:55:18 +0000 (10:55 -0800)] 
Switch core tests to QUnit and es6 modules.

10 years agoUpdate README with es6 notice
Iskren Chernev [Fri, 16 Jan 2015 17:55:47 +0000 (09:55 -0800)] 
Update README with es6 notice

10 years agoAdd Moment.js.nuspec into bump_version task
Iskren Chernev [Thu, 8 Jan 2015 15:13:52 +0000 (07:13 -0800)] 
Add Moment.js.nuspec into bump_version task

10 years agoBuild 2.9.0 2.9.0
Iskren Chernev [Fri, 2 Jan 2015 15:19:08 +0000 (17:19 +0200)] 
Build 2.9.0

10 years agoBump version to 2.9.0
Iskren Chernev [Fri, 2 Jan 2015 15:17:15 +0000 (17:17 +0200)] 
Bump version to 2.9.0

10 years agoRemove meteor-package from bump_version files
Iskren Chernev [Fri, 2 Jan 2015 15:16:53 +0000 (17:16 +0200)] 
Remove meteor-package from bump_version files

10 years agoFix Frisian locale tests
Iskren Chernev [Fri, 2 Jan 2015 15:09:57 +0000 (17:09 +0200)] 
Fix Frisian locale tests

10 years agoUpdate changelog for 2.9.0
Iskren Chernev [Fri, 2 Jan 2015 15:00:49 +0000 (17:00 +0200)] 
Update changelog for 2.9.0

10 years agoPut absolute links in README, for better embedding
Iskren Chernev [Fri, 2 Jan 2015 14:56:31 +0000 (16:56 +0200)] 
Put absolute links in README, for better embedding

10 years agoRemove publish-meteor from release task
Iskren Chernev [Wed, 31 Dec 2014 16:42:12 +0000 (18:42 +0200)] 
Remove publish-meteor from release task

10 years agoMerge pull request #2133 from ichernev:fix-month-diff
Iskren Chernev [Tue, 30 Dec 2014 07:46:39 +0000 (09:46 +0200)] 
Merge pull request #2133 from ichernev:fix-month-diff

Reimplement month diff logic

10 years agoReimplement month diff logic 2133/head
Iskren Chernev [Mon, 29 Dec 2014 11:18:18 +0000 (13:18 +0200)] 
Reimplement month diff logic

The new algorithm to compute month differences between two moments (used in
`diff(a, 'month|quarter|year')`), is as follows:
- take the whole number of months between the two dates (ignoring day-of-month
  and hour) -- whole-month-diff
- the above is adjusted by how much the second date is away from the
  whole-month-diff-date (the date where the result would be exactly
  whole-month-diff)

This algorithm makes sure that dates that are exact number of months apart
would return whole numbers (like previous algorithm), but also fixes a few edge
cases that the old agorithm failed to do, like when the first moment is close
to the end of a long month and the second moment was in the begining of a short
month (end of Jan to begining of Feb for example).

Fixes #2026

10 years agoMerge pull request #2111 from chasenlehara:nullDuration
Iskren Chernev [Mon, 29 Dec 2014 14:10:56 +0000 (16:10 +0200)] 
Merge pull request #2111 from chasenlehara:nullDuration

Create valid duration object when null is passed to moment.duration()

10 years agoCreate valid duration object when null is passed to moment.duration()
Chasen Le Hara [Fri, 19 Dec 2014 08:40:44 +0000 (00:40 -0800)] 
Create valid duration object when null is passed to moment.duration()

10 years agoMerge pull request #2131 from ichernev:diff-quarter
Iskren Chernev [Mon, 29 Dec 2014 09:26:10 +0000 (11:26 +0200)] 
Merge pull request #2131 from ichernev:diff-quarter

Add quarter diff support

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