]> git.ipfire.org Git - thirdparty/moment.git/log
thirdparty/moment.git
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

12 years agoRemoving 'now' option on min/max 800/head
Tim Wood [Mon, 3 Jun 2013 17:21:27 +0000 (10:21 -0700)] 
Removing 'now' option on min/max

12 years agoMerge pull request #752 from ichernev/bugfix/gl-lang
Tim Wood [Mon, 3 Jun 2013 17:18:58 +0000 (10:18 -0700)] 
Merge pull request #752 from ichernev/bugfix/gl-lang

Bugfix/gl lang

12 years agoMerge pull request #803 from Oire/develop
Tim Wood [Mon, 3 Jun 2013 16:43:46 +0000 (09:43 -0700)] 
Merge pull request #803 from Oire/develop

More fixes to Ukrainian: literary standard fix plus special case for 11 hours processing

12 years agoAdd tests for duration.add and .remove 734/head
Christopher Brown [Sat, 1 Jun 2013 13:31:10 +0000 (08:31 -0500)] 
Add tests for duration.add and .remove

12 years agoAnd this does work indeed, thanks to guru @ichernev 803/head
Oire [Sat, 1 Jun 2013 12:03:21 +0000 (15:03 +0300)] 
And this does work indeed, thanks to guru @ichernev

12 years agoAdd duration.add() and duration.subtract() methods.
Christopher Brown [Fri, 31 May 2013 21:21:55 +0000 (16:21 -0500)] 
Add duration.add() and duration.subtract() methods.

12 years agoThe only solution I can propose with processHours function
Oire [Fri, 31 May 2013 11:20:23 +0000 (14:20 +0300)] 
The only solution I can propose with processHours function

12 years agoaliasing the toISOString method to the toJSON method 806/head
Kevin Marx [Thu, 30 May 2013 12:24:07 +0000 (07:24 -0500)] 
aliasing the toISOString method to the toJSON method

12 years agoMerge pull request #791 from timrwood/feature/ampm
Tim Wood [Wed, 29 May 2013 00:29:26 +0000 (17:29 -0700)] 
Merge pull request #791 from timrwood/feature/ampm

Supporting A.M. and P.M. and moving isPM check to Language

12 years agofixed missing space after function
Kevin Marx [Mon, 27 May 2013 19:03:53 +0000 (14:03 -0500)] 
fixed missing space after function

12 years agoadded in a toISOString helper method to match the javascript date object's toISOStrin...
Kevin Marx [Mon, 27 May 2013 18:45:49 +0000 (13:45 -0500)] 
added in a toISOString helper method to match the javascript date object's toISOString method

12 years agoFixed diff across tz tests to work for all timezones 747/head
Iskren Chernev [Thu, 23 May 2013 06:45:51 +0000 (23:45 -0700)] 
Fixed diff across tz tests to work for all timezones

12 years agoMore fixes to Ukrainian: literary standard fix plus special case for 11 hours processing
Oire [Fri, 24 May 2013 23:09:31 +0000 (02:09 +0300)] 
More fixes to Ukrainian: literary standard fix plus special case for 11 hours processing

12 years agoAdding moment#min and moment#max #755
Tim Wood [Thu, 23 May 2013 19:17:24 +0000 (12:17 -0700)] 
Adding moment#min and moment#max #755

12 years agoMoving parse regex to language as well as isPM 791/head
Tim Wood [Thu, 23 May 2013 16:18:18 +0000 (09:18 -0700)] 
Moving parse regex to language as well as isPM

12 years agoMerge branch 'develop' into feature/ampm
Tim Wood [Thu, 23 May 2013 16:08:14 +0000 (09:08 -0700)] 
Merge branch 'develop' into feature/ampm

* develop: (21 commits)
  Fixing tests for #780
  More tests for #788
  Using first valid format when parsing multiple formats - #653 #788
  Updating tests for #788
  fixing jshint error
  Use brackets to escape characters
  Add composer.json
  fix test and some translations
  Update it.js
  Fix escaping
  Update br.js
  Fixing indentation
  Fixing indentation
  Fixing indentation
  Added mutations for years
  And more
  Update header
  More tests, more translations
  Updating header (comments)
  Updating months
  ...

12 years agoIgnore DST for day, week, month and year diffs
Iskren Chernev [Thu, 25 Apr 2013 07:51:10 +0000 (00:51 -0700)] 
Ignore DST for day, week, month and year diffs

12 years agoMerge pull request #795 from gdibble/patch-1
Iskren Ivov Chernev [Thu, 23 May 2013 05:18:19 +0000 (22:18 -0700)] 
Merge pull request #795 from gdibble/patch-1

UK officially uses 24H, not 12H in written form.

12 years agoMerge pull request #1 from gdibble/develop 795/head
Gabriel Dibble [Thu, 23 May 2013 04:03:29 +0000 (21:03 -0700)] 
Merge pull request #1 from gdibble/develop

test updates for en-GB time formatting