]> git.ipfire.org Git - thirdparty/moment.git/log
thirdparty/moment.git
9 years agoFlip dow,doy arguments of dayOfYearFromWeeks 2702/head
Iskren Chernev [Thu, 29 Oct 2015 09:27:33 +0000 (02:27 -0700)] 
Flip dow,doy arguments of dayOfYearFromWeeks

9 years agoRefactor weekOfYear and weeksInYear to make more sense
Iskren Chernev [Thu, 29 Oct 2015 09:15:09 +0000 (02:15 -0700)] 
Refactor weekOfYear and weeksInYear to make more sense

9 years agoRefactor dayOfYearFromWeeks so it makes more sense
Iskren Chernev [Thu, 29 Oct 2015 08:27:15 +0000 (01:27 -0700)] 
Refactor dayOfYearFromWeeks so it makes more sense

9 years agoCollect week-calendar utility functions in src/lib/units/week-calendar-utils
Iskren Chernev [Thu, 29 Oct 2015 07:26:21 +0000 (00:26 -0700)] 
Collect week-calendar utility functions in src/lib/units/week-calendar-utils

9 years agoAdd weekday overflow check
Iskren Chernev [Tue, 27 Oct 2015 08:01:38 +0000 (01:01 -0700)] 
Add weekday overflow check

Fixes half of #2457

9 years agoFix (iso)weekYear setter
Iskren Chernev [Tue, 27 Oct 2015 07:55:09 +0000 (00:55 -0700)] 
Fix (iso)weekYear setter

Fixes #2033 #1379

9 years agoAdd week overflow checks on creation
Iskren Chernev [Tue, 27 Oct 2015 05:36:08 +0000 (22:36 -0700)] 
Add week overflow checks on creation

Fixes half of #2457

9 years agoFix moment creation from week-calendar when year didn't match week year
Iskren Chernev [Tue, 27 Oct 2015 05:08:07 +0000 (22:08 -0700)] 
Fix moment creation from week-calendar when year didn't match week year

9 years agoMerge pull request #2700 from ichernev:hmm
Iskren Chernev [Mon, 9 Nov 2015 02:50:26 +0000 (18:50 -0800)] 
Merge pull request #2700 from ichernev:hmm

Add hmm and hmmss formatting tokens

9 years agoAdd Hmm and Hmmss tokens 2700/head
Iskren Chernev [Mon, 9 Nov 2015 02:47:30 +0000 (18:47 -0800)] 
Add Hmm and Hmmss tokens

9 years agoAdd hmm and hmmss formatting tokens
Iskren Chernev [Mon, 26 Oct 2015 08:17:31 +0000 (01:17 -0700)] 
Add hmm and hmmss formatting tokens

Fixes #2418

9 years agoMerge pull request #2735 from ichernev:reset-locale-at-end
Iskren Chernev [Mon, 9 Nov 2015 02:33:10 +0000 (18:33 -0800)] 
Merge pull request #2735 from ichernev:reset-locale-at-end

Reset the locale back to 'en' after defining all locales in min/locales.js

9 years agoReset the locale back to 'en' after defining all locales in min/locales.js
Iskren Chernev [Sat, 7 Nov 2015 20:24:49 +0000 (12:24 -0800)] 
Reset the locale back to 'en' after defining all locales in min/locales.js

Fixes #1798

9 years agoMerge pull request #2665 from ichernev:better-strict-weekday
Iskren Chernev [Mon, 9 Nov 2015 02:30:10 +0000 (18:30 -0800)] 
Merge pull request #2665 from ichernev:better-strict-weekday

Implement stricter weekday parsing

9 years agoImplement stricter weekday parsing 2665/head
Iskren Chernev [Sat, 10 Oct 2015 20:22:56 +0000 (13:22 -0700)] 
Implement stricter weekday parsing

9 years agoMerge pull request #2641 from ichernev:iso-8601
Iskren Chernev [Mon, 9 Nov 2015 02:27:40 +0000 (18:27 -0800)] 
Merge pull request #2641 from ichernev:iso-8601

Implement basic format and comma as ms separator in ISO 8601

9 years agoAdd more iso tests variations (strict and non-strict ISO_8601)
Iskren Chernev [Sat, 10 Oct 2015 19:38:56 +0000 (12:38 -0700)] 
Add more iso tests variations (strict and non-strict ISO_8601)

9 years agoUse different regexp for extended and basic iso
Iskren Chernev [Tue, 29 Sep 2015 08:11:40 +0000 (01:11 -0700)] 
Use different regexp for extended and basic iso

9 years agoFix a few crashes with invalid iso strings
Iskren Chernev [Tue, 29 Sep 2015 07:47:38 +0000 (00:47 -0700)] 
Fix a few crashes with invalid iso strings

9 years agoImplement basic format and comma as ms separator in ISO 8601
Iskren Chernev [Tue, 29 Sep 2015 05:19:17 +0000 (22:19 -0700)] 
Implement basic format and comma as ms separator in ISO 8601

9 years agoMerge pull request #2635 from ichernev:fix-thresholds-under-half-next
Iskren Chernev [Mon, 9 Nov 2015 02:24:34 +0000 (18:24 -0800)] 
Merge pull request #2635 from ichernev:fix-thresholds-under-half-next

Fix wrong humanize format with weird custom relative thresholds

9 years agoFix wrong humanize format with weird custom relative thresholds
Iskren Chernev [Thu, 24 Sep 2015 04:36:28 +0000 (21:36 -0700)] 
Fix wrong humanize format with weird custom relative thresholds

9 years agoMerge pull request #2634 from ichernev:fix-strict-month-parsing
Iskren Chernev [Mon, 9 Nov 2015 02:23:03 +0000 (18:23 -0800)] 
Merge pull request #2634 from ichernev:fix-strict-month-parsing

Fix strict month parsing issue in cs,ru,sk

9 years agoFix strict month parsing issue in cs,ru,sk
Iskren Chernev [Wed, 23 Sep 2015 17:25:16 +0000 (10:25 -0700)] 
Fix strict month parsing issue in cs,ru,sk

9 years agoMerge pull request #2624 from ichernev:fix-2619
Iskren Chernev [Mon, 9 Nov 2015 02:20:52 +0000 (18:20 -0800)] 
Merge pull request #2624 from ichernev:fix-2619

Proper handling of invalid moments

9 years agoMake jshint/jscs happy
Iskren Chernev [Tue, 22 Sep 2015 03:02:18 +0000 (20:02 -0700)] 
Make jshint/jscs happy

9 years agoEnsure special handling of invalid moments in all moment methods
Iskren Chernev [Mon, 21 Sep 2015 02:58:36 +0000 (19:58 -0700)] 
Ensure special handling of invalid moments in all moment methods

9 years agoFix wrong Greek tests
Iskren Chernev [Sun, 20 Sep 2015 02:01:55 +0000 (19:01 -0700)] 
Fix wrong Greek tests

9 years agoget,set,add,subtract handle properly invalid moments
Iskren Chernev [Sun, 20 Sep 2015 01:41:10 +0000 (18:41 -0700)] 
get,set,add,subtract handle properly invalid moments

9 years agoMerge pull request #2650 from PeterMortensen/develop
Matt Johnson [Wed, 7 Oct 2015 16:21:19 +0000 (09:21 -0700)] 
Merge pull request #2650 from PeterMortensen/develop

Update README.md

9 years agoUpdate README.md 2650/head
Peter Mortensen [Mon, 5 Oct 2015 18:03:37 +0000 (20:03 +0200)] 
Update README.md

Expansion.

9 years agoMerge pull request #2528 from ichernev/ignore-tests-npm
Matt Johnson [Thu, 10 Sep 2015 19:05:21 +0000 (12:05 -0700)] 
Merge pull request #2528 from ichernev/ignore-tests-npm

Ignore min/tests.js from npm package

10 years agoIgnore min/tests.js from npm package 2528/head
Iskren Chernev [Fri, 31 Jul 2015 04:47:02 +0000 (21:47 -0700)] 
Ignore min/tests.js from npm package

10 years agoBuild 2.10.6 2208/head 2465/head 2.10.6
Iskren Chernev [Tue, 28 Jul 2015 04:39:50 +0000 (21:39 -0700)] 
Build 2.10.6

10 years agoBump version to 2.10.6
Iskren Chernev [Tue, 28 Jul 2015 04:36:31 +0000 (21:36 -0700)] 
Bump version to 2.10.6

10 years agoUpdate changelog for 2.10.6
Iskren Chernev [Tue, 28 Jul 2015 04:36:12 +0000 (21:36 -0700)] 
Update changelog for 2.10.6

10 years agoMerge pull request #2515 from ichernev/fix-constructor
Iskren Ivov Chernev [Tue, 28 Jul 2015 04:30:43 +0000 (21:30 -0700)] 
Merge pull request #2515 from ichernev/fix-constructor

Fix constructor regression

10 years agoFix regression outlined in #2512 2515/head
Iskren Chernev [Mon, 27 Jul 2015 16:39:57 +0000 (09:39 -0700)] 
Fix regression outlined in #2512

10 years agoAdd sudo: false to .travis.yml 2.10.5
Iskren Chernev [Sun, 26 Jul 2015 09:25:49 +0000 (02:25 -0700)] 
Add sudo: false to .travis.yml

10 years agoBuild 2.10.5
Iskren Chernev [Sun, 26 Jul 2015 09:15:25 +0000 (02:15 -0700)] 
Build 2.10.5

10 years agoBump version to 2.10.5
Iskren Chernev [Sun, 26 Jul 2015 09:13:19 +0000 (02:13 -0700)] 
Bump version to 2.10.5

10 years agoUpdate changelog for 2.10.5
Iskren Chernev [Sun, 26 Jul 2015 09:12:34 +0000 (02:12 -0700)] 
Update changelog for 2.10.5

10 years agoImplement suggested improvements
Iskren Chernev [Sun, 26 Jul 2015 03:47:30 +0000 (20:47 -0700)] 
Implement suggested improvements

10 years agoSupport up to milliseconds tokens up to 9 digits, fixes #2436
Iskren Chernev [Sun, 5 Jul 2015 15:28:40 +0000 (00:28 +0900)] 
Support up to milliseconds tokens up to 9 digits, fixes #2436

10 years agoMerge pull request #2461 from ichernev:duration-bubble
Iskren Chernev [Sun, 26 Jul 2015 04:51:26 +0000 (21:51 -0700)] 
Merge pull request #2461 from ichernev:duration-bubble

Improved duration bubbling, fixes #2166

10 years agoUse ratios to convert bubble days to months and years
Iskren Chernev [Thu, 9 Jul 2015 08:21:59 +0000 (01:21 -0700)] 
Use ratios to convert bubble days to months and years

10 years agoImproved duration bubbling, fixes #2166
Iskren Chernev [Wed, 8 Jul 2015 13:25:40 +0000 (21:25 +0800)] 
Improved duration bubbling, fixes #2166

10 years agoMerge pull request #2476 from ichernev:fix-is-dst-shifted
Iskren Chernev [Sun, 26 Jul 2015 04:49:41 +0000 (21:49 -0700)] 
Merge pull request #2476 from ichernev:fix-is-dst-shifted

Fix isDSTShifted, fixes #2141

10 years agoFix isDSTShifted, fixes #2141
Iskren Chernev [Sun, 12 Jul 2015 23:09:19 +0000 (16:09 -0700)] 
Fix isDSTShifted, fixes #2141

10 years agoMerge pull request #2494 from stewartml:yyyy-fix
Iskren Chernev [Sun, 26 Jul 2015 04:48:36 +0000 (21:48 -0700)] 
Merge pull request #2494 from stewartml:yyyy-fix

Fix two digit year parsing with YYYY format

10 years agoFix two digit year parsing with YYYY format
Stewart MacKenzie-Leigh [Mon, 20 Jul 2015 13:47:03 +0000 (14:47 +0100)] 
Fix two digit year parsing with YYYY format

Two digit years will use the parseTwoDigitYear function when parsing with the YYYY format.
Closes #2343

10 years agoMerge pull request #2506 from ichernev:to-object
Iskren Chernev [Sun, 26 Jul 2015 04:31:56 +0000 (21:31 -0700)] 
Merge pull request #2506 from ichernev:to-object

Redo #2123 in es6

10 years agoRedo #2123 in es6
Iskren Chernev [Sun, 26 Jul 2015 03:00:04 +0000 (20:00 -0700)] 
Redo #2123 in es6

10 years agoMerge pull request #2507 from ichernev:redo-2191
Iskren Chernev [Sun, 26 Jul 2015 04:29:22 +0000 (21:29 -0700)] 
Merge pull request #2507 from ichernev:redo-2191

Redo 2191 in es6

10 years agoRedo 2191 in es6
Iskren Chernev [Sun, 26 Jul 2015 03:06:45 +0000 (20:06 -0700)] 
Redo 2191 in es6

10 years agoMerge pull request #2508 from ichernev:redo-2124
Iskren Chernev [Sun, 26 Jul 2015 04:27:15 +0000 (21:27 -0700)] 
Merge pull request #2508 from ichernev:redo-2124

Redo #2124

10 years agoRedo #2124
Iskren Chernev [Sun, 26 Jul 2015 03:35:38 +0000 (20:35 -0700)] 
Redo #2124

10 years agoMerge pull request #2420 from ignasne:develop
Iskren Chernev [Sun, 26 Jul 2015 04:25:36 +0000 (21:25 -0700)] 
Merge pull request #2420 from ignasne:develop

nominative month translation added to lt.js language

10 years agoFix tests
Iskren Chernev [Sun, 26 Jul 2015 04:25:12 +0000 (21:25 -0700)] 
Fix tests

10 years agonominative month translation added to lt.js language
Ignas Nedzinskas [Tue, 16 Jun 2015 14:19:27 +0000 (17:19 +0300)] 
nominative month translation added to lt.js language

10 years agoDisable coveralls.io reporting for now
Iskren Chernev [Wed, 22 Jul 2015 17:17:38 +0000 (10:17 -0700)] 
Disable coveralls.io reporting for now

10 years agoIgnore more coverage stuff
Iskren Chernev [Wed, 22 Jul 2015 17:04:04 +0000 (10:04 -0700)] 
Ignore more coverage stuff

10 years agoMerge pull request #2387 from bcoe:coverage
Iskren Chernev [Wed, 22 Jul 2015 16:47:35 +0000 (09:47 -0700)] 
Merge pull request #2387 from bcoe:coverage

add coverage reporting using nyc and coveralls

10 years agoadd coverage reporting using nyc and coveralls
Benjamin Coe [Mon, 25 May 2015 20:25:15 +0000 (13:25 -0700)] 
add coverage reporting using nyc and coveralls

10 years agoMerge pull request #2489 from Xaar37:develop
Iskren Chernev [Wed, 22 Jul 2015 16:26:33 +0000 (09:26 -0700)] 
Merge pull request #2489 from Xaar37:develop

Update deprecate.js

10 years agoUpdate deprecate.js 2489/head
Xaar37 [Thu, 16 Jul 2015 06:50:31 +0000 (08:50 +0200)] 
Update deprecate.js

10 years agoMerge pull request #2473 from mj1856:fix-2023.1
Iskren Chernev [Mon, 13 Jul 2015 00:47:21 +0000 (17:47 -0700)] 
Merge pull request #2473 from mj1856:fix-2023.1

Expect 0 assertions to fix #2382

10 years agoExpect 0 assertions to fix #2382
Matt Johnson [Sun, 12 Jul 2015 05:39:51 +0000 (22:39 -0700)] 
Expect 0 assertions to fix #2382

10 years agoMerge pull request #2467 from mj1856:fix-2337.6
Iskren Chernev [Mon, 13 Jul 2015 00:44:30 +0000 (17:44 -0700)] 
Merge pull request #2467 from mj1856:fix-2337.6

Fix test for fractional-hour offsets, fixes #2389

10 years agoFix test for fractional-hour offsets
Matt Johnson [Thu, 9 Jul 2015 18:14:05 +0000 (11:14 -0700)] 
Fix test for fractional-hour offsets

10 years agoMerge pull request #2460 from ichernev:support-partial-test
Iskren Chernev [Mon, 13 Jul 2015 00:42:10 +0000 (17:42 -0700)] 
Merge pull request #2460 from ichernev:support-partial-test

Support grunt test --only=moment/duration,locale/ru

10 years agoMake jscs happy
Iskren Chernev [Sun, 12 Jul 2015 22:07:08 +0000 (15:07 -0700)] 
Make jscs happy

10 years agoSupport grunt test --only=moment/duration,locale/ru
Iskren Chernev [Wed, 8 Jul 2015 13:24:15 +0000 (21:24 +0800)] 
Support grunt test --only=moment/duration,locale/ru

10 years agoMerge pull request #2459 from ichernev:fix-add-regex-token
Iskren Chernev [Mon, 13 Jul 2015 00:40:49 +0000 (17:40 -0700)] 
Merge pull request #2459 from ichernev:fix-add-regex-token

Fix function check to workaround old browsers, fixes #2325

10 years agoFix function check to workaround old browsers, fixes #2325
Iskren Chernev [Wed, 8 Jul 2015 11:20:53 +0000 (19:20 +0800)] 
Fix function check to workaround old browsers, fixes #2325

10 years agoMerge pull request #2456 from ichernev:fix-str-weekday-parse-check
Iskren Chernev [Mon, 13 Jul 2015 00:38:32 +0000 (17:38 -0700)] 
Merge pull request #2456 from ichernev:fix-str-weekday-parse-check

Mark moment as invalid if bad string weekday repr is parsed, fixes #2423

10 years agoMark moment as invalid if bad string weekday repr is parsed, fixes #2423
Iskren Chernev [Wed, 8 Jul 2015 10:07:52 +0000 (18:07 +0800)] 
Mark moment as invalid if bad string weekday repr is parsed, fixes #2423

10 years agoMerge pull request #2439 from raleksandar:develop
Iskren Chernev [Mon, 13 Jul 2015 00:34:57 +0000 (17:34 -0700)] 
Merge pull request #2439 from raleksandar:develop

Fix imports in locale files

10 years agoFix imports in locale files
Aleksandar Ružičić [Sat, 27 Jun 2015 14:58:46 +0000 (16:58 +0200)] 
Fix imports in locale files

10 years agoMerge pull request #2438 from cwohlman:fixInvalidMin
Iskren Chernev [Mon, 13 Jul 2015 00:32:58 +0000 (17:32 -0700)] 
Merge pull request #2438 from cwohlman:fixInvalidMin

Fix inconsistent moment.min and moment.max results

10 years agoAdd test to ensure invalid moments isSame returns false
Joshua Ohlman [Sat, 4 Jul 2015 13:08:46 +0000 (08:08 -0500)] 
Add test to ensure invalid moments isSame returns false

10 years agoRevert "valueOf should return NaN for any invalid moment"
Joshua Ohlman [Sat, 4 Jul 2015 13:05:03 +0000 (08:05 -0500)] 
Revert "valueOf should return NaN for any invalid moment"

This reverts commit c314f03a9b7153fcab55942878a9899ad74ce73e.

10 years agovalueOf should return NaN for any invalid moment
Joshua Ohlman [Mon, 29 Jun 2015 20:44:02 +0000 (15:44 -0500)] 
valueOf should return NaN for any invalid moment

this fixes an issue where isSame would return true for two invalid moments, which is inconsistent with NaN === NaN and also inconsistent with other cases where isSame would return false for two invalid moments. (some invalid moments are backed by a valid date)

Fixes #2354

10 years agoAdd tests and fix for inconsistent moment.min and moment.max behavior.
Joshua Ohlman [Fri, 26 Jun 2015 23:44:49 +0000 (18:44 -0500)] 
Add tests and fix for inconsistent moment.min and moment.max behavior.

Fixes #2362

10 years agoEnsure moment.isAfter and moment.isBefore match js math operations
Joshua Ohlman [Fri, 26 Jun 2015 23:36:52 +0000 (18:36 -0500)] 
Ensure moment.isAfter and moment.isBefore match js math operations

Add tests to isBefore and isAfter preparatory to fixing #2362, since moment.min and moment.max rely on isBefore and isAfter to calculate moment value

10 years agoMerge pull request #2434 from Leocrest:fix/hu
Iskren Chernev [Mon, 13 Jul 2015 00:30:40 +0000 (17:30 -0700)] 
Merge pull request #2434 from Leocrest:fix/hu

fix(hu):Improve long date time formats for hungarian.

10 years agofix(hu):Improve long date time formats for hungarian.
Brett Johnson [Mon, 22 Jun 2015 17:14:13 +0000 (11:14 -0600)] 
fix(hu):Improve long date time formats for hungarian.

10 years agoMerge pull request #2421 from aniruddha-adhikary:develop
Iskren Chernev [Mon, 13 Jul 2015 00:27:15 +0000 (17:27 -0700)] 
Merge pull request #2421 from aniruddha-adhikary:develop

fix bengali translation of morning

10 years agoRevert autogenerated file changes
Iskren Chernev [Mon, 13 Jul 2015 00:27:04 +0000 (17:27 -0700)] 
Revert autogenerated file changes

10 years agofix bengali translation of morning
Aniruddha Adhikary [Wed, 17 Jun 2015 03:35:31 +0000 (09:35 +0600)] 
fix bengali translation of morning

10 years agoMerge pull request #2414 from motain:ordinal-fr
Iskren Chernev [Mon, 13 Jul 2015 00:22:21 +0000 (17:22 -0700)] 
Merge pull request #2414 from motain:ordinal-fr

Locales fr & fr-ca: set an abbreviation for ordinal numbers >1

10 years agoRevert fr locale changes, suggested by https://github.com/moment/moment/pull/2414...
Iskren Chernev [Mon, 13 Jul 2015 00:21:44 +0000 (17:21 -0700)] 
Revert fr locale changes, suggested by https://github.com/moment/moment/pull/2414#issuecomment-118649162

10 years agoSet an abbreviation for ordinal numbers >1
Maxime VALY [Thu, 11 Jun 2015 09:14:28 +0000 (11:14 +0200)] 
Set an abbreviation for ordinal numbers >1

I went for the simpler "deuxième, troisième" form instead of "second,
troisième". All numbers after 1 share the same abbreviation.

My first idea was to go for "ème", but looking for a source to back my
PR I found that the "correct" way is "e", at least according to printing
rules: https://fr.wiktionary.org/wiki/2%C3%A8me

The French Academy doesn't seem to have any article concerning the
abbreviation, only the "second / deuxième" usage:
http://www.xn--acadmie-franaise-npb1a.fr/la-langue-francaise/questions-de-langue#29_strong-em-deuxime-second-em-strong

10 years agoMerge pull request #2404 from philjohnson789:develop
Iskren Chernev [Mon, 13 Jul 2015 00:14:29 +0000 (17:14 -0700)] 
Merge pull request #2404 from philjohnson789:develop

Fix Strict Date Parsing of ISO-8601 Dates Without Times

10 years agoChanging a unit test case that is incorrectly labelled as valid.
Phil Johnson [Thu, 4 Jun 2015 21:11:07 +0000 (17:11 -0400)] 
Changing a unit test case that is incorrectly labelled as valid.

10 years agoFixing ISO-8601 date parsing when no time component is present.
Phil Johnson [Thu, 4 Jun 2015 20:48:51 +0000 (16:48 -0400)] 
Fixing ISO-8601 date parsing when no time component is present.

10 years agoAdding unit tests to verify strict date parsing of ISO-8601 dates.
Phil Johnson [Thu, 4 Jun 2015 19:56:01 +0000 (15:56 -0400)] 
Adding unit tests to verify strict date parsing of ISO-8601 dates.

10 years agoMerge pull request #2368 from wyantb:clone-perf
Iskren Chernev [Mon, 13 Jul 2015 00:00:30 +0000 (17:00 -0700)] 
Merge pull request #2368 from wyantb:clone-perf

perf: use faster form of copying dates, across the board improvement

10 years agoperf: add duration benchmark, cleanup benchmarking output
Brian Wyant [Sun, 10 May 2015 02:06:10 +0000 (22:06 -0400)] 
perf: add duration benchmark, cleanup benchmarking output

10 years agoperf: use faster form of copying dates, across the board improvement
Brian Wyant [Sat, 9 May 2015 17:40:32 +0000 (13:40 -0400)] 
perf: use faster form of copying dates, across the board improvement

Reference: http://jsperf.com/date-copy-constructor/3