]> git.ipfire.org Git - thirdparty/moment.git/log
thirdparty/moment.git
11 years agobetter fix for month parser issue 1020/head
Isaac Cambron [Thu, 22 Aug 2013 23:51:59 +0000 (19:51 -0400)] 
better fix for month parser issue

11 years agoMerge pull request #998 from TalAter/hebrew-dual-form-fixed
Tim Wood [Mon, 19 Aug 2013 18:48:31 +0000 (11:48 -0700)] 
Merge pull request #998 from TalAter/hebrew-dual-form-fixed

Hebrew dual form fixed

11 years agoMerge pull request #1007 from icambron/cloning-with-utc
Tim Wood [Mon, 19 Aug 2013 18:48:11 +0000 (11:48 -0700)] 
Merge pull request #1007 from icambron/cloning-with-utc

force moment.utc() to use utc

11 years agoMerge pull request #1011 from icambron/expand-localized-in-parser
Tim Wood [Mon, 19 Aug 2013 18:21:40 +0000 (11:21 -0700)] 
Merge pull request #1011 from icambron/expand-localized-in-parser

Expand localized tokens in the parser.

11 years agoMerge pull request #1010 from icambron/pacific-apia
Tim Wood [Mon, 19 Aug 2013 18:19:26 +0000 (11:19 -0700)] 
Merge pull request #1010 from icambron/pacific-apia

move test to avoid DST weirdness in Samoa

11 years agoMerge pull request #1008 from icambron/half-hour-offsets
Tim Wood [Mon, 19 Aug 2013 17:44:12 +0000 (10:44 -0700)] 
Merge pull request #1008 from icambron/half-hour-offsets

fixing zone test for half hour offsets

11 years agoMerge pull request #1006 from icambron/simpler-month-parse
Tim Wood [Mon, 19 Aug 2013 17:34:08 +0000 (10:34 -0700)] 
Merge pull request #1006 from icambron/simpler-month-parse

use the second day of each month to find the month name

11 years agoMerge pull request #1003 from floydpink/feature/malayalam-language
Tim Wood [Mon, 19 Aug 2013 16:21:32 +0000 (09:21 -0700)] 
Merge pull request #1003 from floydpink/feature/malayalam-language

Malayalam language

11 years agoMerge pull request #1002 from Oire/feature/ukr-short-months
Tim Wood [Mon, 19 Aug 2013 16:19:52 +0000 (09:19 -0700)] 
Merge pull request #1002 from Oire/feature/ukr-short-months

Corrected short months and weekdays in Ukrainian; fixes #1001

11 years agoMerge pull request #995 from kalehv/develop
Tim Wood [Mon, 19 Aug 2013 16:16:06 +0000 (09:16 -0700)] 
Merge pull request #995 from kalehv/develop

Add Marathi language support

11 years agoExpand localized tokens in the parser. Fixes #665. 1011/head
Isaac Cambron [Mon, 19 Aug 2013 08:19:42 +0000 (04:19 -0400)] 
Expand localized tokens in the parser. Fixes #665.

11 years agomove test to avoid pacific-apia DST weirdness 1010/head
Isaac Cambron [Mon, 19 Aug 2013 07:12:25 +0000 (20:12 +1300)] 
move test to avoid pacific-apia DST weirdness

11 years agofixing zone test for half hour offsets 1008/head
Isaac Cambron [Mon, 19 Aug 2013 06:43:39 +0000 (02:13 -0430)] 
fixing zone test for half hour offsets

11 years agoforce moment.utc() to use utc 1007/head
Isaac Cambron [Mon, 19 Aug 2013 05:50:10 +0000 (01:50 -0400)] 
force moment.utc() to use utc

11 years agouse the second day of each month to find the month name 1006/head
Isaac Cambron [Mon, 19 Aug 2013 03:10:05 +0000 (06:10 +0300)] 
use the second day of each month to find the month name

11 years agodeault dow and doy are just fine 1003/head
Floyd Pink [Thu, 15 Aug 2013 17:27:33 +0000 (17:27 +0000)] 
deault dow and doy are just fine

11 years agoedited out a few unsafe characters
Floyd Pink [Thu, 15 Aug 2013 16:14:48 +0000 (16:14 +0000)] 
edited out a few unsafe characters

11 years agoadded some tests as well modeled off of hi.js
Floyd Pink [Thu, 15 Aug 2013 15:06:32 +0000 (15:06 +0000)] 
added some tests as well modeled off of hi.js

11 years agoCorrected short months and weekdays in Ukrainian; fixes #1001 1002/head
Oire [Thu, 15 Aug 2013 13:50:43 +0000 (16:50 +0300)] 
Corrected short months and weekdays in Ukrainian; fixes #1001

11 years agoAdded spaces around plus sign, to satisfy jshint. 998/head
Tal Ater [Wed, 14 Aug 2013 23:05:14 +0000 (02:05 +0300)] 
Added spaces around plus sign, to satisfy jshint.

11 years agoAdded author line.
Tal Ater [Wed, 14 Aug 2013 23:03:14 +0000 (02:03 +0300)] 
Added author line.

11 years agoAdded Hebrew dual form for hours, days, months and years
Tal Ater [Wed, 14 Aug 2013 22:47:34 +0000 (01:47 +0300)] 
Added Hebrew dual form for hours, days, months and years

11 years agoadded ml.js
Floyd Pink [Wed, 14 Aug 2013 20:22:22 +0000 (20:22 +0000)] 
added ml.js

11 years agomatch months short names 995/head
Harshad Kale [Tue, 13 Aug 2013 18:59:53 +0000 (13:59 -0500)] 
match months short names

11 years agomonths names
Harshad Kale [Tue, 13 Aug 2013 18:57:05 +0000 (13:57 -0500)] 
months names

11 years agoa few word changes
Harshad Kale [Tue, 13 Aug 2013 18:52:07 +0000 (13:52 -0500)] 
a few word changes

11 years agoAdd Marathi
Harshad Kale [Tue, 13 Aug 2013 18:36:50 +0000 (13:36 -0500)] 
Add Marathi

12 years agoMerge pull request #985 from ichernev/feature/normalize-lang-codes
Tim Wood [Mon, 12 Aug 2013 17:52:00 +0000 (10:52 -0700)] 
Merge pull request #985 from ichernev/feature/normalize-lang-codes

Normalize language identifiers as described in #963

12 years agoNormalize language identifiers as described in #963 985/head
Iskren Chernev [Fri, 9 Aug 2013 09:02:36 +0000 (02:02 -0700)] 
Normalize language identifiers as described in #963

12 years agoMerge pull request #982 from ichernev/fix-prototype-constructor
Tim Wood [Thu, 8 Aug 2013 19:04:34 +0000 (12:04 -0700)] 
Merge pull request #982 from ichernev/fix-prototype-constructor

Moment, Duration and Language objects now have constructor property

12 years agoMerge pull request #983 from ichernev/improved-grunt-zones
Tim Wood [Thu, 8 Aug 2013 18:42:28 +0000 (11:42 -0700)] 
Merge pull request #983 from ichernev/improved-grunt-zones

grunt zones with TZ and zone.tab

12 years agoFixed a few comments 983/head
Iskren Chernev [Wed, 7 Aug 2013 08:22:37 +0000 (01:22 -0700)] 
Fixed a few comments

12 years agogrunt zones with TZ and zone.tab
Iskren Chernev [Wed, 7 Aug 2013 08:20:04 +0000 (01:20 -0700)] 
grunt zones with TZ and zone.tab

12 years agoMerge pull request #966 from mechuwind/patch-1
Iskren Ivov Chernev [Wed, 7 Aug 2013 06:49:50 +0000 (23:49 -0700)] 
Merge pull request #966 from mechuwind/patch-1

Change the Norwegian nynorsk language configuration to follow the most common date format

12 years agoMerge pull request #978 from icambron/extraneous-s
Iskren Ivov Chernev [Wed, 7 Aug 2013 06:32:58 +0000 (23:32 -0700)] 
Merge pull request #978 from icambron/extraneous-s

removing extra s in get() and set()

12 years agoMerge pull request #979 from chall8908/develop
Iskren Ivov Chernev [Wed, 7 Aug 2013 06:32:01 +0000 (23:32 -0700)] 
Merge pull request #979 from chall8908/develop

Fix for strange Duration behavior when using strings for values

12 years agoMoment, Duration and Language objects now have constructor property 982/head
Iskren Chernev [Wed, 7 Aug 2013 06:27:10 +0000 (23:27 -0700)] 
Moment, Duration and Language objects now have constructor property

12 years agoSplit string value tests into their own test 979/head
Chris Hall [Tue, 6 Aug 2013 23:02:50 +0000 (18:02 -0500)] 
Split string value tests into their own test

12 years agoAdded unary + operator to ms, days, and months in Duration constructor
Chris Hall [Tue, 6 Aug 2013 17:52:54 +0000 (12:52 -0500)] 
Added unary + operator to ms, days, and months in Duration constructor
when building internal representations
Added tests that check against string initialization of Duration
parameters
Closes #968

12 years agoremoving extra s in get() and set() 978/head
Isaac Cambron [Tue, 6 Aug 2013 07:32:59 +0000 (03:32 -0400)] 
removing extra s in get() and set()

12 years agoMerge pull request #971 from ichernev/bugfix/global-regexp-test
Iskren Ivov Chernev [Mon, 5 Aug 2013 06:46:18 +0000 (23:46 -0700)] 
Merge pull request #971 from ichernev/bugfix/global-regexp-test

Fixed local formatting tokens detection

Apparently global regexes remember the last matched position after `test`. Reset that that before each test.

12 years agoRemoved exetuable bit on lang/fa.js
Iskren Chernev [Fri, 2 Aug 2013 07:06:58 +0000 (00:06 -0700)] 
Removed exetuable bit on lang/fa.js

12 years agoFixed local formatting tokens detection 971/head
Iskren Chernev [Thu, 1 Aug 2013 07:33:33 +0000 (00:33 -0700)] 
Fixed local formatting tokens detection

According to the docs:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test
issuing regex.test on the same regex that is also g (global), would cause it to
remember the last match position and continue from there. Set lastIndex to
0 before every test to make sure this won't happen.

12 years agoUpdate nn.js 966/head
mechuwind [Tue, 30 Jul 2013 12:49:22 +0000 (14:49 +0200)] 
Update nn.js

Update test for nn

12 years agoUpdate nn.js
mechuwind [Tue, 30 Jul 2013 12:44:07 +0000 (14:44 +0200)] 
Update nn.js

Change the long date format, so that it follows the most common Norwegian system for dates (DD.MM.YYYY). Ref. http://en.wikipedia.org/wiki/Date_and_time_notation_in_Norway.

12 years agoMerge pull request #950 from mroderick/hotfix/2.1.0-add-bower.json
Iskren Ivov Chernev [Tue, 30 Jul 2013 05:04:47 +0000 (22:04 -0700)] 
Merge pull request #950 from mroderick/hotfix/2.1.0-add-bower.json

Add bower.json

12 years agoMerge pull request #951 from ichernev/bugfix/argentina-dst-failing-test
Tim Wood [Mon, 29 Jul 2013 16:19:25 +0000 (09:19 -0700)] 
Merge pull request #951 from ichernev/bugfix/argentina-dst-failing-test

Fix broken lang tests in Argentina

12 years agoMerge pull request #912 from ichernev/feature/create-defaults-to-current-date
Iskren Ivov Chernev [Sat, 27 Jul 2013 07:30:23 +0000 (00:30 -0700)] 
Merge pull request #912 from ichernev/feature/create-defaults-to-current-date

Moment creation defaults to current date

12 years agoMerge pull request #949 from tkallevik/patch-1
Iskren Ivov Chernev [Sat, 27 Jul 2013 07:06:44 +0000 (00:06 -0700)] 
Merge pull request #949 from tkallevik/patch-1

Change the Norwegian language configuration to follow the most common date format

12 years agoMerge pull request #915 from ichernev/features/invalid-at
Iskren Ivov Chernev [Sat, 27 Jul 2013 06:57:32 +0000 (23:57 -0700)] 
Merge pull request #915 from ichernev/features/invalid-at

Added invalidAt function to get invalid unit index

12 years agoFixed the unit test for the Norwegian language configuration 949/head
Thomas Kallevik [Fri, 26 Jul 2013 08:04:49 +0000 (10:04 +0200)] 
Fixed the unit test for the Norwegian language configuration

12 years agoFix broken lang tests in Argentina 951/head
Iskren Chernev [Thu, 25 Jul 2013 05:03:50 +0000 (02:03 -0300)] 
Fix broken lang tests in Argentina

This was reported in #816.
It happens because there is DST in Argentina on 30 Dec 2007.

12 years agoAdd bower.json 950/head
Morgan Roderick [Wed, 24 Jul 2013 14:36:12 +0000 (16:36 +0200)] 
Add bower.json

Eventually Bower is likely to become incompatible with the component.json format, and the warnings will turn to errors when installing with Bower.

12 years agoUpdate nb.js
Thomas Kallevik [Wed, 24 Jul 2013 06:59:38 +0000 (08:59 +0200)] 
Update nb.js

Change the long date format, so that it follows the most common Norwegian system for dates (DD.MM.YYYY). Ref. http://en.wikipedia.org/wiki/Date_and_time_notation_in_Norway.

12 years agoMerge pull request #911 from ichernev/feature/uninstall-lang
Tim Wood [Tue, 23 Jul 2013 16:12:24 +0000 (09:12 -0700)] 
Merge pull request #911 from ichernev/feature/uninstall-lang

Added a way to uninstall a language definition

12 years agoMerge pull request #938 from icambron/string-driven-getters
Iskren Ivov Chernev [Sat, 20 Jul 2013 21:18:48 +0000 (14:18 -0700)] 
Merge pull request #938 from icambron/string-driven-getters

string-driven getters and setters

12 years agoMake jshint happy 915/head
Iskren Chernev [Sat, 20 Jul 2013 21:11:20 +0000 (19:11 -0200)] 
Make jshint happy

12 years agoMoment creation defaults to current date 912/head
Iskren Chernev [Sun, 24 Feb 2013 09:10:30 +0000 (06:10 -0300)] 
Moment creation defaults to current date

12 years agoMerge pull request #910 from ichernev/bugfix/asp-net-duration-regex
Iskren Ivov Chernev [Sat, 20 Jul 2013 16:32:12 +0000 (09:32 -0700)] 
Merge pull request #910 from ichernev/bugfix/asp-net-duration-regex

AspNET duration regex now correctly handles days

12 years agoAspNET duration regex now correctly handles days 910/head
Iskren Chernev [Sun, 14 Jul 2013 04:16:41 +0000 (21:16 -0700)] 
AspNET duration regex now correctly handles days

Days are now completely optional and won't steal digits from the hours.

12 years agostring-driven getters and setters 938/head
Isaac Cambron [Fri, 19 Jul 2013 13:48:11 +0000 (09:48 -0400)] 
string-driven getters and setters

12 years agoMerge pull request #930 from jrgensen/develop
Tim Wood [Thu, 18 Jul 2013 16:31:45 +0000 (09:31 -0700)] 
Merge pull request #930 from jrgensen/develop

allow initializing with unix timestamp as integer

12 years agoMerge pull request #918 from ichernev/features/start-of-isoweek
Iskren Ivov Chernev [Thu, 18 Jul 2013 09:05:27 +0000 (02:05 -0700)] 
Merge pull request #918 from ichernev/features/start-of-isoweek

Added start/end/same support for isoWeek

12 years agoallow initializing with unix timestamp as integer 930/head
Klaus Jrgensen [Wed, 17 Jul 2013 20:02:39 +0000 (22:02 +0200)] 
allow initializing with unix timestamp as integer

12 years agoAdded tests for start/end of isoWeek 918/head
Iskren Chernev [Sun, 14 Jul 2013 23:31:46 +0000 (21:31 -0200)] 
Added tests for start/end of isoWeek

12 years agostartOf now support isoWeek
Iskren Chernev [Sun, 14 Jul 2013 23:13:55 +0000 (21:13 -0200)] 
startOf now support isoWeek

As requested by #855

12 years agoMerge branch 'jshint-tests' into develop
Iskren Chernev [Sun, 14 Jul 2013 22:21:15 +0000 (15:21 -0700)] 
Merge branch 'jshint-tests' into develop

12 years agoMove all jshint files to all target
Iskren Chernev [Sun, 14 Jul 2013 22:20:48 +0000 (15:20 -0700)] 
Move all jshint files to all target

12 years agoJsHint onevar all lang tests
Iskren Chernev [Sun, 14 Jul 2013 22:17:51 +0000 (15:17 -0700)] 
JsHint onevar all lang tests

12 years agoJsHint all moment lang tests
Iskren Chernev [Sun, 14 Jul 2013 21:50:19 +0000 (14:50 -0700)] 
JsHint all moment lang tests

12 years agoJsHint all moment tests
Iskren Chernev [Sun, 14 Jul 2013 08:56:28 +0000 (01:56 -0700)] 
JsHint all moment tests

12 years agoAdded invalidAt function to get invalid unit index
Iskren Chernev [Sun, 14 Jul 2013 07:14:05 +0000 (00:14 -0700)] 
Added invalidAt function to get invalid unit index

isValid is boolean, so its not very helpful in determining which section of
a date is wrong. inavlidAt returns the index of the broken token, where 0 is
year and 6 is millisecond.

12 years agoAdded a way to uninstall a language definition 911/head
Iskren Chernev [Sun, 14 Jul 2013 05:01:00 +0000 (22:01 -0700)] 
Added a way to uninstall a language definition

moment.lang(key, null) now uninstalls a language. That's mostly useful to
remove auxiliary languages added during test runs.

12 years agoUncommented test for setting undefined language
Iskren Chernev [Sat, 13 Jul 2013 22:16:00 +0000 (15:16 -0700)] 
Uncommented test for setting undefined language

12 years agoSetting non-existing language in the browser now works.
Iskren Chernev [Sat, 13 Jul 2013 22:14:13 +0000 (15:14 -0700)] 
Setting non-existing language in the browser now works.

12 years agoDisabled test for setting unexisting language
Iskren Chernev [Sat, 13 Jul 2013 21:44:48 +0000 (14:44 -0700)] 
Disabled test for setting unexisting language

12 years agoIncrease epsilon for min_max tests
Iskren Chernev [Sat, 13 Jul 2013 21:44:16 +0000 (14:44 -0700)] 
Increase epsilon for min_max tests

12 years ago2.1.0 release 2.1.0
Tim Wood [Sun, 7 Jul 2013 19:35:04 +0000 (12:35 -0700)] 
2.1.0 release

12 years agoDon't test JSON.stringify if it doesn't exist #867
Tim Wood [Sun, 7 Jul 2013 19:19:55 +0000 (12:19 -0700)] 
Don't test JSON.stringify if it doesn't exist #867

12 years agoMerge branch 'develop' of github.com:timrwood/moment into develop
Tim Wood [Sun, 7 Jul 2013 19:12:39 +0000 (12:12 -0700)] 
Merge branch 'develop' of github.com:timrwood/moment into develop

* 'develop' of github.com:timrwood/moment:
  Added tests for Albanian, see #872

12 years agoadding note on minified language files
Tim Wood [Sun, 7 Jul 2013 19:12:21 +0000 (12:12 -0700)] 
adding note on minified language files

12 years agoMerge pull request #876 from Oire/feature/albanian-tests
Tim Wood [Sun, 7 Jul 2013 18:11:48 +0000 (11:11 -0700)] 
Merge pull request #876 from Oire/feature/albanian-tests

Added tests for Albanian

12 years agoAdded tests for Albanian, see #872 876/head
Oire [Thu, 4 Jul 2013 10:22:41 +0000 (13:22 +0300)] 
Added tests for Albanian, see #872

12 years agoMerge pull request #870 from ebraminio/develop
Tim Wood [Tue, 2 Jul 2013 17:49:52 +0000 (10:49 -0700)] 
Merge pull request #870 from ebraminio/develop

Adding Persian Support

12 years agoMerge pull request #871 from ebraminio/patch-1
Tim Wood [Sun, 30 Jun 2013 22:40:46 +0000 (15:40 -0700)] 
Merge pull request #871 from ebraminio/patch-1

grunt is enough

12 years agogrunt is enough 871/head
Ebrahim Byagowi [Sun, 30 Jun 2013 22:21:43 +0000 (22:21 +0000)] 
grunt is enough

There was not test task, `grunt` is enough for testing. In fact this was misleading for me

12 years agoAdding Persian Support 870/head
Ebrahim Byagowi [Sun, 30 Jun 2013 16:20:27 +0000 (16:20 +0000)] 
Adding Persian Support

12 years agoMerge pull request #863 from frasertweedale/bugfix/clone-duration
Tim Wood [Thu, 27 Jun 2013 19:06:52 +0000 (12:06 -0700)] 
Merge pull request #863 from frasertweedale/bugfix/clone-duration

fix durations not being cloned properly

12 years agobubbling up values on durations when adding or subtracting
Tim Wood [Thu, 27 Jun 2013 18:56:30 +0000 (11:56 -0700)] 
bubbling up values on durations when adding or subtracting

12 years agofixing failing dst tests
Tim Wood [Thu, 27 Jun 2013 18:20:16 +0000 (11:20 -0700)] 
fixing failing dst tests

12 years agoMerge pull request #862 from Oire/feature/german-suffixes
Iskren Ivov Chernev [Mon, 24 Jun 2013 15:54:05 +0000 (08:54 -0700)] 
Merge pull request #862 from Oire/feature/german-suffixes

Fix fromNow in German #842

12 years agoMerge pull request #822 from jwarkentin/develop
Iskren Ivov Chernev [Mon, 24 Jun 2013 15:16:10 +0000 (08:16 -0700)] 
Merge pull request #822 from jwarkentin/develop

Fix JavaScript setMonth() behavior

12 years agofix durations not being cloned properly 863/head
Fraser Tweedale [Thu, 20 Jun 2013 08:58:35 +0000 (18:58 +1000)] 
fix durations not being cloned properly

``moment.duration`` does not return an equivalent Duration for all
inputs.  Add a test for this and fix the issue by reusing the
Duration's constructor argument.

12 years agoFixed fromNow without suffix in German, should fix #842 862/head
Oire [Sun, 23 Jun 2013 21:09:43 +0000 (00:09 +0300)] 
Fixed fromNow without suffix in German, should fix #842

12 years agoMerge remote-tracking branch 'main/develop' into develop
Oire [Sun, 23 Jun 2013 09:45:22 +0000 (12:45 +0300)] 
Merge remote-tracking branch 'main/develop' into develop

12 years agoMerge branch 'feature/rus-ukr-ordinals' into develop
Oire [Sun, 23 Jun 2013 09:11:49 +0000 (12:11 +0300)] 
Merge branch 'feature/rus-ukr-ordinals' into develop

12 years agoFix JavaScript setMonth() behavior 822/head
Justin Warkentin [Fri, 31 May 2013 20:14:01 +0000 (14:14 -0600)] 
Fix JavaScript setMonth() behavior

12 years agoMerge pull request #825 from Oire/feature/rus-ukr-ordinals
Iskren Ivov Chernev [Sun, 23 Jun 2013 03:41:27 +0000 (20:41 -0700)] 
Merge pull request #825 from Oire/feature/rus-ukr-ordinals

Appropriate ordinals processing in Russian and Ukrainian

12 years agoWhere's my headbang emoticon?(( 825/head
Oire [Thu, 20 Jun 2013 17:55:34 +0000 (20:55 +0300)] 
Where's my headbang emoticon?((

12 years agoMerge pull request #841 from CmdrMoozy/uglifyjs-lint
Iskren Ivov Chernev [Thu, 20 Jun 2013 17:13:39 +0000 (10:13 -0700)] 
Merge pull request #841 from CmdrMoozy/uglifyjs-lint

Fixed some warnings uglifyjs gave when compressing.