]> git.ipfire.org Git - thirdparty/moment.git/log
thirdparty/moment.git
11 years agoFixing merge conflicts 1727/head
Andre Polykanine A.K.A. Menelion Elensúlë [Sun, 6 Jul 2014 12:28:38 +0000 (15:28 +0300)] 
Fixing merge conflicts

11 years agoFixed tests according to changes in #1642, see @icambron's last comment
Andre Polykanine A.K.A. Menelion Elensúlë [Sun, 6 Jul 2014 12:18:44 +0000 (15:18 +0300)] 
Fixed tests according to changes in #1642, see @icambron's last comment

11 years agoFixing code style errors
Andre Polykanine A.K.A. Menelion Elensúlë [Fri, 20 Jun 2014 09:47:17 +0000 (12:47 +0300)] 
Fixing code style errors

11 years agoFixing Belarusian language
Andre Polykanine A.K.A. Menelion Elensúlë [Thu, 19 Jun 2014 14:50:07 +0000 (17:50 +0300)] 
Fixing Belarusian language

11 years agoMerge pull request #1755 from ichernev/fix-jscs
Isaac Cambron [Thu, 3 Jul 2014 20:42:21 +0000 (16:42 -0400)] 
Merge pull request #1755 from ichernev/fix-jscs

Remove padding newlines in the begining of functions

11 years agoRemove padding newlines in the begining of functions 1755/head
Iskren Chernev [Thu, 3 Jul 2014 08:22:22 +0000 (01:22 -0700)] 
Remove padding newlines in the begining of functions

11 years agoImprove comments in a few tests
Iskren Chernev [Thu, 3 Jul 2014 07:37:13 +0000 (00:37 -0700)] 
Improve comments in a few tests

11 years agoMerge pull request #1720 from tentwentyfour/develop
Isaac Cambron [Tue, 1 Jul 2014 23:25:53 +0000 (19:25 -0400)] 
Merge pull request #1720 from tentwentyfour/develop

simplification of lb.js implementation

11 years agoMerge pull request #1708 from ptbrowne/perf-makeDateFromInput
Isaac Cambron [Tue, 1 Jul 2014 23:06:18 +0000 (19:06 -0400)] 
Merge pull request #1708 from ptbrowne/perf-makeDateFromInput

perf(makeDateFromInput): no need to match regex if input is a Date

11 years agoMerge pull request #1738 from ichernev/bugfix-zone2
Isaac Cambron [Tue, 1 Jul 2014 19:08:05 +0000 (15:08 -0400)] 
Merge pull request #1738 from ichernev/bugfix-zone2

Fix local to utc/zone switching with keepLocalTime option

11 years agoFix local to utc/zone switching with keepLocalTime option 1738/head
Iskren Chernev [Thu, 26 Jun 2014 07:17:35 +0000 (00:17 -0700)] 
Fix local to utc/zone switching with keepLocalTime option

11 years agoFixing code style errors
Andre Polykanine A.K.A. Menelion Elensúlë [Fri, 20 Jun 2014 09:47:17 +0000 (12:47 +0300)] 
Fixing code style errors

11 years agoFixing Belarusian language
Andre Polykanine A.K.A. Menelion Elensúlë [Thu, 19 Jun 2014 14:50:07 +0000 (17:50 +0300)] 
Fixing Belarusian language

11 years agosimplification of lb.js implementation 1720/head
David Raison [Wed, 18 Jun 2014 10:19:03 +0000 (12:19 +0200)] 
simplification of lb.js implementation

11 years agoMerge pull request #1718 from ichernev/jscs-support
Iskren Ivov Chernev [Thu, 19 Jun 2014 08:55:35 +0000 (01:55 -0700)] 
Merge pull request #1718 from ichernev/jscs-support

Jscs support

@changelog
@section misc
@description code style checking with jscs (jshint is only for bug detection)

11 years agoAll test files pass jscs 1718/head
Iskren Chernev [Thu, 19 Jun 2014 08:26:20 +0000 (01:26 -0700)] 
All test files pass jscs

11 years agoAll lang files pass jscs
Iskren Chernev [Tue, 17 Jun 2014 06:40:33 +0000 (23:40 -0700)] 
All lang files pass jscs

11 years agomoment.js now passes jscs
Iskren Chernev [Tue, 17 Jun 2014 06:34:09 +0000 (23:34 -0700)] 
moment.js now passes jscs

11 years agoGruntfile.js now passes jscs
Iskren Chernev [Tue, 17 Jun 2014 06:27:40 +0000 (23:27 -0700)] 
Gruntfile.js now passes jscs

11 years agoFix invalid octal number
Iskren Chernev [Tue, 17 Jun 2014 06:09:33 +0000 (23:09 -0700)] 
Fix invalid octal number

11 years agoAdd jscs task with options
Iskren Chernev [Tue, 17 Jun 2014 06:09:12 +0000 (23:09 -0700)] 
Add jscs task with options

11 years agoMerge pull request #1642 from ichernev/fix-humanize
Iskren Ivov Chernev [Thu, 19 Jun 2014 06:02:11 +0000 (23:02 -0700)] 
Merge pull request #1642 from ichernev/fix-humanize

Fix humanize

@changelog
@section bugfix
@description use duration object for relative duration strings
@breaking relativeTimeThreshold keys are now changed to 's', 'm', 'h', 'd' and 'M'. Also the actual thresholds for changed (46 days is now 1 month, not 2).

11 years agoFix korean test label 1642/head
Iskren Chernev [Wed, 7 May 2014 16:45:07 +0000 (09:45 -0700)] 
Fix korean test label

11 years agoFix language tests
Iskren Chernev [Wed, 7 May 2014 16:44:14 +0000 (09:44 -0700)] 
Fix language tests

11 years agoFix moment tests
Iskren Chernev [Wed, 7 May 2014 16:36:15 +0000 (09:36 -0700)] 
Fix moment tests

11 years agoFix bugs in humanize and asYears
Iskren Chernev [Wed, 7 May 2014 16:18:54 +0000 (09:18 -0700)] 
Fix bugs in humanize and asYears

11 years agointernal relativeTime now accepts only duration object
Iskren Chernev [Sun, 27 Apr 2014 20:26:14 +0000 (13:26 -0700)] 
internal relativeTime now accepts only duration object

11 years agoUse duration object in relativeTime
Iskren Chernev [Sun, 27 Apr 2014 20:09:49 +0000 (13:09 -0700)] 
Use duration object in relativeTime

11 years agoBetter bubbling of days to years in duration
Iskren Chernev [Sat, 26 Apr 2014 19:52:01 +0000 (12:52 -0700)] 
Better bubbling of days to years in duration

11 years agoImplement accurate moment.duration({from, to})
Iskren Chernev [Sat, 26 Apr 2014 08:28:15 +0000 (01:28 -0700)] 
Implement accurate moment.duration({from, to})

11 years agoMerge pull request #1716 from jbrockmeyer/getRelativeTimeThreshold_Issue_1715
Iskren Ivov Chernev [Tue, 17 Jun 2014 06:43:34 +0000 (23:43 -0700)] 
Merge pull request #1716 from jbrockmeyer/getRelativeTimeThreshold_Issue_1715

Fix issue #1715 to retrieve relativeTimeThreshold settings

@changelog
@section features
@description Allow getting relativeTimeThreshold

11 years agoRunt grunt tests for jbrockmeyer's comit for Issue 1715 1716/head
Sam Vincent [Mon, 16 Jun 2014 23:41:00 +0000 (16:41 -0700)] 
Runt grunt tests for jbrockmeyer's comit for Issue 1715

11 years agoMerge pull request #1710 from Oire/feature/fix-1706
Iskren Ivov Chernev [Sun, 15 Jun 2014 19:55:15 +0000 (12:55 -0700)] 
Merge pull request #1710 from Oire/feature/fix-1706

Fixing Lithuanian

@changelog
@section lang-bugfix
@description Fix month name in Italian

11 years agoFixing Lithuanian, see #1706 1710/head
Andre Polykanine A.K.A. Menelion Elensúlë [Sat, 14 Jun 2014 11:11:19 +0000 (14:11 +0300)] 
Fixing Lithuanian, see #1706

11 years agostyle: declare var at top 1708/head
Patrick Browne [Thu, 12 Jun 2014 08:42:45 +0000 (10:42 +0200)] 
style: declare var at top

11 years agoGenerate minified/production files 2.7.0
Iskren Chernev [Thu, 12 Jun 2014 07:01:05 +0000 (00:01 -0700)] 
Generate minified/production files

11 years agoBump version to 2.7.0
Iskren Chernev [Thu, 12 Jun 2014 06:59:31 +0000 (23:59 -0700)] 
Bump version to 2.7.0

11 years agoUpdate readme with 2.7.0 changelog
Iskren Chernev [Thu, 12 Jun 2014 06:58:04 +0000 (23:58 -0700)] 
Update readme with 2.7.0 changelog

11 years agoMerge pull request #1693 from SBSTP/moment-iso-parse
Iskren Ivov Chernev [Thu, 12 Jun 2014 05:25:22 +0000 (22:25 -0700)] 
Merge pull request #1693 from SBSTP/moment-iso-parse

Allow ISO-8601 to be passed as a format.

@changelog
@section features
@description support moment.ISO_8601 as a format in constructor, that would use ISO time format parsing

11 years agoMerge pull request #1704 from seriousben/feature/support_string_value_in_add_subtract
Iskren Ivov Chernev [Thu, 12 Jun 2014 05:10:50 +0000 (22:10 -0700)] 
Merge pull request #1704 from seriousben/feature/support_string_value_in_add_subtract

Support strings in add and subtract

@changelog
@section features
@description support string type for numeric values in add/subtract

11 years agoMerge pull request #1687 from ichernev/bugfix/year-diff-ru
Isaac Cambron [Thu, 12 Jun 2014 04:46:05 +0000 (00:46 -0400)] 
Merge pull request #1687 from ichernev/bugfix/year-diff-ru

Fix broken year diff tests for Russia

11 years agoperf(makeDateFromInput): no need to match regex if input is a Date
Patrick Browne [Wed, 11 Jun 2014 13:37:19 +0000 (15:37 +0200)] 
perf(makeDateFromInput): no need to match regex if input is a Date

The moment constructor when passed a Date should be the fastest. There is
no need to match the aspNetJsonRegex before testing if the `input` is a
Date.

11 years agoSupport string value in add and subtract 1704/head
Benjamin Boudreau [Sun, 8 Jun 2014 21:54:03 +0000 (17:54 -0400)] 
Support string value in add and subtract

11 years agoImplemented suggested changes 1693/head
Simon Bernier St-Pierre [Thu, 5 Jun 2014 14:38:22 +0000 (10:38 -0400)] 
Implemented suggested changes

`moment.js` now has a separate parseISO function which only handles
the parsing. `makeDateFromString` keeps the same behavior and uses
parseISO. The tests have also been refactored and moved into
their own function.

11 years agoMerge pull request #1699 from Oire/feature/fix-1326
Andre Polykanine A.K.A. Menelion Elensúlë [Thu, 5 Jun 2014 12:49:08 +0000 (15:49 +0300)] 
Merge pull request #1699 from Oire/feature/fix-1326

Fixing months capitalization in Italian

11 years agoFixing months capitalization in Italian 1699/head
Andre Polykanine A.K.A. Menelion Elensúlë [Thu, 5 Jun 2014 12:42:31 +0000 (15:42 +0300)] 
Fixing months capitalization in Italian

11 years agoFix version in component.json
Iskren Chernev [Thu, 5 Jun 2014 05:26:11 +0000 (22:26 -0700)] 
Fix version in component.json

11 years agoAdd more relevant tests.
Simon Bernier St-Pierre [Tue, 3 Jun 2014 16:59:54 +0000 (12:59 -0400)] 
Add more relevant tests.

I've added much more relevant tests, checking the _f property
for the format that was used for parsing and _pf.iso in the case
of ISO.

11 years agoFix the second issue
Simon Bernier St-Pierre [Tue, 3 Jun 2014 16:35:21 +0000 (12:35 -0400)] 
Fix the second issue

I've added a useFallback parameter to makeDateFromString. When not
supplied, the old behavior remains. When supplied and true, it does
not call the createFromInputCallback and instead returns an empty
config. This also seems to fix the first issue, it now plays much
nicer with scoring and precendence.

11 years agoAllow ISO-8601 to be passed as a format.
Simon Bernier St-Pierre [Tue, 3 Jun 2014 15:27:27 +0000 (11:27 -0400)] 
Allow ISO-8601 to be passed as a format.

This commit allows the ISO-8601 format to be
passed as a format in the moment(string, array)
constructor. This is a preliminary commit as this
addition as yielded a few issues.

11 years agoFix broken year diff tests for Russia 1687/head
Iskren Chernev [Tue, 3 Jun 2014 06:22:09 +0000 (23:22 -0700)] 
Fix broken year diff tests for Russia

Russia's zone offset is different on 1st of January (something we assumed
impossible in tests). Check to see if that is the case and skip the offending
test.

Fixes #1635 and #1612

11 years agoMerge pull request #1651 from ichernev/fix-timezone-parsing
Isaac Cambron [Mon, 26 May 2014 13:01:36 +0000 (09:01 -0400)] 
Merge pull request #1651 from ichernev/fix-timezone-parsing

Fix timezone parsing by applying the timezone offset after date creation

11 years agoMerge pull request #1650 from ichernev/fix-meridiem-parse-russian
Isaac Cambron [Mon, 26 May 2014 13:00:47 +0000 (09:00 -0400)] 
Merge pull request #1650 from ichernev/fix-meridiem-parse-russian

Implement meridiemParse and isPM in Russian

11 years agoMerge pull request #1678 from kaushikgandhi/develop
Andre Polykanine A.K.A. Menelion Elensúlë [Sun, 25 May 2014 18:47:44 +0000 (21:47 +0300)] 
Merge pull request #1678 from kaushikgandhi/develop

Added bengali language support

11 years agoAdding bengali language support 1678/head
kaushik gandhi [Sun, 25 May 2014 16:29:41 +0000 (21:59 +0530)] 
Adding bengali language support

Language file added bn.js
test file for bengali aded test/lang/bn.js

11 years agoMerge pull request #1673 from ichernev/fix-lt
Iskren Ivov Chernev [Sat, 24 May 2014 08:13:13 +0000 (01:13 -0700)] 
Merge pull request #1673 from ichernev/fix-lt

Litunanian day names in calendars with weeks not starting on Monday

11 years agoMerge pull request #1663 from skastel/relative-time-threshold-settings
Andre Polykanine A.K.A. Menelion Elensúlë [Thu, 22 May 2014 18:49:49 +0000 (21:49 +0300)] 
Merge pull request #1663 from skastel/relative-time-threshold-settings

Adding settings to configure relative time thresholds between time units

11 years agoBetter threshold tests to capture intended behavior completely. 1663/head
Stephen Huenneke [Thu, 22 May 2014 17:51:33 +0000 (10:51 -0700)] 
Better threshold tests to capture intended behavior completely.

11 years agoLitunanian day names in calendars with weeks not starting on Monday 1673/head
Gregor Rayman [Sat, 18 Jan 2014 00:42:56 +0000 (01:42 +0100)] 
Litunanian day names in calendars with weeks not starting on Monday

11 years agoMerge pull request #1433 from dazld/pt-lang
Iskren Ivov Chernev [Wed, 21 May 2014 07:53:44 +0000 (00:53 -0700)] 
Merge pull request #1433 from dazld/pt-lang

More natural "time ago" expression for European Portuguese locale

11 years agoMerge pull request #1671 from ichernev/update-cy
Iskren Ivov Chernev [Wed, 21 May 2014 07:53:16 +0000 (00:53 -0700)] 
Merge pull request #1671 from ichernev/update-cy

Update cy

11 years agoMerge pull request #1449 from tcarlsen/develop
Iskren Ivov Chernev [Wed, 21 May 2014 07:50:37 +0000 (00:50 -0700)] 
Merge pull request #1449 from tcarlsen/develop

we use a dot after the day number in Denmark

11 years agoMerge pull request #1554 from Goldbely/feature/calendar-accepts-time-argument
Iskren Ivov Chernev [Wed, 21 May 2014 07:49:08 +0000 (00:49 -0700)] 
Merge pull request #1554 from Goldbely/feature/calendar-accepts-time-argument

Add optional time argument to calendar method

11 years agoMerge pull request #1628 from topchiyev/develop
Iskren Ivov Chernev [Wed, 21 May 2014 07:44:05 +0000 (00:44 -0700)] 
Merge pull request #1628 from topchiyev/develop

Added Azerbaijani lang

11 years agoMerge pull request #1633 from xsoh/develop
Iskren Ivov Chernev [Wed, 21 May 2014 07:39:38 +0000 (00:39 -0700)] 
Merge pull request #1633 from xsoh/develop

Add Arabic (Saudi Arabia) language

11 years agoUpdate cy.js 1671/head
ryangreaves [Wed, 14 May 2014 16:40:51 +0000 (09:40 -0700)] 
Update cy.js

11 years agoUpdate cy.js
ryangreaves [Tue, 6 May 2014 17:27:20 +0000 (10:27 -0700)] 
Update cy.js

11 years agoAdd oire to the contributors list
Iskren Chernev [Fri, 16 May 2014 07:09:02 +0000 (00:09 -0700)] 
Add oire to the contributors list

11 years agoAdding settings to configure relative time thresholds between time units.
Stephen Huenneke [Fri, 16 May 2014 04:48:35 +0000 (21:48 -0700)] 
Adding settings to configure relative time thresholds between time units.

11 years agoMerge pull request #1647 from spmjs/develop
Iskren Ivov Chernev [Wed, 14 May 2014 04:48:30 +0000 (21:48 -0700)] 
Merge pull request #1647 from spmjs/develop

Add spm support

11 years agoMerge pull request #1648 from MadMG/develop
Iskren Ivov Chernev [Tue, 13 May 2014 07:37:19 +0000 (00:37 -0700)] 
Merge pull request #1648 from MadMG/develop

Added country specific translation 'de-at' for austria

11 years agoFixed indentation of the test file to use 4 spaces instead of 2. 1648/head
MadMG [Tue, 13 May 2014 07:20:36 +0000 (09:20 +0200)] 
Fixed indentation of the test file to use 4 spaces instead of 2.

11 years agoAdd tests 1651/head
Iskren Chernev [Sat, 10 May 2014 16:18:12 +0000 (09:18 -0700)] 
Add tests

11 years agoFix timezone parsing by applying the timezone offset after date creation
Iskren Chernev [Thu, 8 May 2014 08:08:04 +0000 (01:08 -0700)] 
Fix timezone parsing by applying the timezone offset after date creation

11 years agoImplement meridiemParse and isPM in Russian 1650/head
Iskren Chernev [Thu, 8 May 2014 07:40:21 +0000 (00:40 -0700)] 
Implement meridiemParse and isPM in Russian

11 years agoAdded country specific translation 'de-at' for austria. The difference is the austria...
MadMG [Wed, 7 May 2014 14:04:24 +0000 (16:04 +0200)] 
Added country specific translation 'de-at' for austria. The difference is the austrian translation of january 'Jänner' (instead of 'Januar')

11 years agoadd spm support 1647/head
afc163 [Wed, 7 May 2014 07:54:34 +0000 (15:54 +0800)] 
add spm support

11 years agoMerge pull request #1637 from ichernev/min-max-redo
Isaac Cambron [Wed, 7 May 2014 06:21:55 +0000 (02:21 -0400)] 
Merge pull request #1637 from ichernev/min-max-redo

Min max redo

11 years agoMerge pull request #1641 from ichernev/fix-init-from-week
Isaac Cambron [Wed, 7 May 2014 06:20:53 +0000 (02:20 -0400)] 
Merge pull request #1641 from ichernev/fix-init-from-week

Fix init from week

11 years agoMake JSHint happy and me unhappy 1641/head
Iskren Chernev [Tue, 6 May 2014 17:18:44 +0000 (10:18 -0700)] 
Make JSHint happy and me unhappy

11 years agoExtract argument handling logic in pickBy 1637/head
Iskren Chernev [Tue, 6 May 2014 17:08:44 +0000 (10:08 -0700)] 
Extract argument handling logic in pickBy

11 years agoMark human weekday as invalid when parsing
Iskren Chernev [Tue, 6 May 2014 16:56:23 +0000 (09:56 -0700)] 
Mark human weekday as invalid when parsing

11 years agoBetter dfl implementation
Iskren Chernev [Tue, 6 May 2014 16:56:01 +0000 (09:56 -0700)] 
Better dfl implementation

11 years agoMake jshint happy
Iskren Chernev [Sat, 3 May 2014 08:09:38 +0000 (01:09 -0700)] 
Make jshint happy

11 years agoRefactor week initialization
Iskren Chernev [Sat, 3 May 2014 08:03:10 +0000 (01:03 -0700)] 
Refactor week initialization

11 years agoFix weekyear/week creation
Iskren Chernev [Sat, 3 May 2014 06:39:49 +0000 (23:39 -0700)] 
Fix weekyear/week creation

Initializing a moment given weekyear/week/weekday was not correct for years
starting on Monday.

11 years agoAdd issue link in deprecation message
Iskren Chernev [Thu, 1 May 2014 17:46:06 +0000 (10:46 -0700)] 
Add issue link in deprecation message

11 years agoTests for moment.min/max
Iskren Chernev [Thu, 1 May 2014 17:39:07 +0000 (10:39 -0700)] 
Tests for moment.min/max

11 years agoImplement moment.min and moment.max
Iskren Chernev [Thu, 1 May 2014 17:23:13 +0000 (10:23 -0700)] 
Implement moment.min and moment.max

11 years agoDeprecate moment().min/max
Iskren Chernev [Thu, 1 May 2014 17:13:21 +0000 (10:13 -0700)] 
Deprecate moment().min/max

11 years agoAdd Arabic (Saudi Arabia) language 1633/head
Suhail Alkowaileet [Wed, 30 Apr 2014 05:42:44 +0000 (08:42 +0300)] 
Add Arabic (Saudi Arabia) language

11 years agoMerge pull request #1559 from xsoh/develop
Iskren Ivov Chernev [Mon, 28 Apr 2014 03:20:54 +0000 (20:20 -0700)] 
Merge pull request #1559 from xsoh/develop

Updating Arabic language

11 years agoAdded Azerbaijani lang 1628/head
Pasha L. Topchiyev (Asus G75VX) [Sun, 27 Apr 2014 13:29:20 +0000 (18:29 +0500)] 
Added Azerbaijani lang

11 years agoMerge pull request #1622 from akarelas/akarelas-fixGreekCalendar
Iskren Ivov Chernev [Fri, 25 Apr 2014 16:49:15 +0000 (09:49 -0700)] 
Merge pull request #1622 from akarelas/akarelas-fixGreekCalendar

Fix "previous Saturday" in greek string

@changelog
@section bugfix

11 years agoreverted the 'min' directory to its original state 1622/head
Alexander Karelas [Thu, 24 Apr 2014 16:23:37 +0000 (16:23 +0000)] 
reverted the 'min' directory to its original state

11 years agocomply with Travis
Alexander Karelas [Thu, 24 Apr 2014 14:50:21 +0000 (14:50 +0000)] 
comply with Travis

11 years agofixed message in a test
Alexander Karelas [Thu, 24 Apr 2014 14:39:53 +0000 (14:39 +0000)] 
fixed message in a test

11 years agoFixed greek "previous Saturday" string - was gender female, now is gender neutral
Alexander Karelas [Thu, 24 Apr 2014 13:08:48 +0000 (13:08 +0000)] 
Fixed greek "previous Saturday" string - was gender female, now is gender neutral

11 years agoMerge pull request #1616 from ichernev/fix-lang-codes
Isaac Cambron [Tue, 22 Apr 2014 18:20:07 +0000 (14:20 -0400)] 
Merge pull request #1616 from ichernev/fix-lang-codes

Fix sr-cyr and tzm-la

11 years agoFix sr-cyr and tzm-la close #1609 1616/head
Iskren Chernev [Tue, 22 Apr 2014 06:16:58 +0000 (23:16 -0700)] 
Fix sr-cyr and tzm-la close #1609