]> git.ipfire.org Git - thirdparty/moment.git/log
thirdparty/moment.git
11 years agoInitial lang test for Croatian. 1013/head
Bojan Markovic [Tue, 20 Aug 2013 09:04:31 +0000 (11:04 +0200)] 
Initial lang test for Croatian.

11 years agoAdded Croatian (hr) translation.
Bojan Markovic [Tue, 20 Aug 2013 07:09:37 +0000 (09:09 +0200)] 
Added Croatian (hr) translation.

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.

12 years agoFixing alignment, hope it's OK now
Oire [Thu, 20 Jun 2013 17:02:35 +0000 (20:02 +0300)] 
Fixing alignment, hope it's OK now

12 years agoMerge pull request #847 from tpaszun/develop
Tim Wood [Tue, 18 Jun 2013 23:36:40 +0000 (16:36 -0700)] 
Merge pull request #847 from tpaszun/develop

Fixed polish date format & months usage

12 years agoMerge pull request #853 from Caged/bower-ignores
Tim Wood [Tue, 18 Jun 2013 23:35:33 +0000 (16:35 -0700)] 
Merge pull request #853 from Caged/bower-ignores

Ignore nonessential files when installing via bower

12 years agoMerge pull request #846 from dperrymorrow/develop
Tim Wood [Tue, 18 Jun 2013 22:41:19 +0000 (15:41 -0700)] 
Merge pull request #846 from dperrymorrow/develop

If lang requested not found, resort to default lang

12 years agoRename bower.json to component.json 853/head
Justin Palmer [Tue, 18 Jun 2013 22:37:44 +0000 (16:37 -0600)] 
Rename bower.json to component.json

revert back to component.json to keep component/component support

12 years agoignore nonessential files when installing via bower
Justin Palmer [Tue, 18 Jun 2013 18:28:50 +0000 (11:28 -0700)] 
ignore nonessential files when installing via bower

When installing via Bower, we only want to pull down files essential to
the use of moment.js and ignore everything else.  See [ignore]
https://github.com/bower/bower#defining-a-package for more information
on bower ignores.

12 years agoRename component.json to preferred bower.json
Justin Palmer [Tue, 18 Jun 2013 18:20:22 +0000 (11:20 -0700)] 
Rename component.json to preferred bower.json

12 years agoiso week days should be in the 1-7 range, not 0-6. #699 http://en.wikipedia.org/wiki...
Tim Wood [Mon, 17 Jun 2013 20:48:01 +0000 (13:48 -0700)] 
iso week days should be in the 1-7 range, not 0-6. #699 http://en.wikipedia.org/wiki/ISO_week_date

12 years agoFixed polish date format & months usage 847/head
Tymoteusz Paszun [Sat, 15 Jun 2013 18:32:33 +0000 (20:32 +0200)] 
Fixed polish date format & months usage

12 years agoIf lang requested not found, resort to default lang 846/head
David Morrow [Fri, 14 Jun 2013 18:17:38 +0000 (11:17 -0700)] 
If lang requested not found, resort to default lang

in response to Issue #844

12 years agoFixed some warnings uglifyjs gave when compressing. 841/head
Axel Rasmussen [Thu, 13 Jun 2013 18:04:20 +0000 (12:04 -0600)] 
Fixed some warnings uglifyjs gave when compressing.

12 years agoless likely to hang test runner #747
Tim Wood [Mon, 10 Jun 2013 21:57:43 +0000 (17:57 -0400)] 
less likely to hang test runner #747

12 years agousing days in month instead of hardcoded year lengths #747
Tim Wood [Mon, 10 Jun 2013 16:56:13 +0000 (13:56 -0300)] 
using days in month instead of hardcoded year lengths #747

12 years agoMerge pull request #747 from ichernev/features/diff-across-dst
Tim Wood [Mon, 10 Jun 2013 16:50:19 +0000 (09:50 -0700)] 
Merge pull request #747 from ichernev/features/diff-across-dst

Ignore DST for day, week, month and year diffs

12 years agoMerge pull request #834 from JensRantil/swedish-lang-remove-klockan
Tim Wood [Fri, 7 Jun 2013 16:45:24 +0000 (09:45 -0700)] 
Merge pull request #834 from JensRantil/swedish-lang-remove-klockan

Remove "Klockan" in `moment.calendar()`

12 years agoRemove "Klockan" in `moment.calendar()` 834/head
Jens Rantil [Fri, 7 Jun 2013 13:20:29 +0000 (15:20 +0200)] 
Remove "Klockan" in `moment.calendar()`

 * "Klockan" is kinda superflous.
 * This makes the Swedish translation more similar to English.

12 years agoMerge pull request #734 from chbrown/develop
Iskren Ivov Chernev [Wed, 5 Jun 2013 09:20:10 +0000 (02:20 -0700)] 
Merge pull request #734 from chbrown/develop

Add duration.add and subtract method

12 years agoOh sorry, I've forgotten a tiny thing, as always
Oire [Mon, 3 Jun 2013 22:34:47 +0000 (01:34 +0300)] 
Oh sorry, I've forgotten a tiny thing, as always

12 years agoAppropriate ordinals processing in Russian and Ukrainian
Oire [Mon, 3 Jun 2013 22:26:12 +0000 (01:26 +0300)] 
Appropriate ordinals processing in Russian and Ukrainian

12 years ago#788 add tests for year first array
Tim Wood [Mon, 3 Jun 2013 18:39:15 +0000 (11:39 -0700)] 
#788 add tests for year first array

12 years agoadd a penalty to formats that do not parse the entire input #818
Tim Wood [Mon, 3 Jun 2013 18:14:41 +0000 (11:14 -0700)] 
add a penalty to formats that do not parse the entire input #818

12 years agomaking auto iso8601 ignore 'T' if it is not in the input string #804
Tim Wood [Mon, 3 Jun 2013 17:52:32 +0000 (10:52 -0700)] 
making auto iso8601 ignore 'T' if it is not in the input string #804

12 years agoMaking toJSON an alias of toISOString rather than the other way around #806
Tim Wood [Mon, 3 Jun 2013 17:29:38 +0000 (10:29 -0700)] 
Making toJSON an alias of toISOString rather than the other way around #806

12 years agoMerge pull request #806 from kevinmarx/isoHelperMethod
Tim Wood [Mon, 3 Jun 2013 17:28:02 +0000 (10:28 -0700)] 
Merge pull request #806 from kevinmarx/isoHelperMethod

toISOString helper method.

12 years agoMerge pull request #800 from timrwood/feature/minmax
Tim Wood [Mon, 3 Jun 2013 17:26:46 +0000 (10:26 -0700)] 
Merge pull request #800 from timrwood/feature/minmax

Adding moment#min and moment#max #755