]>
git.ipfire.org Git - thirdparty/moment.git/log
Iskren Chernev [Thu, 29 Oct 2015 09:27:33 +0000 (02:27 -0700)]
Flip dow,doy arguments of dayOfYearFromWeeks
Iskren Chernev [Thu, 29 Oct 2015 09:15:09 +0000 (02:15 -0700)]
Refactor weekOfYear and weeksInYear to make more sense
Iskren Chernev [Thu, 29 Oct 2015 08:27:15 +0000 (01:27 -0700)]
Refactor dayOfYearFromWeeks so it makes more sense
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
Iskren Chernev [Tue, 27 Oct 2015 08:01:38 +0000 (01:01 -0700)]
Add weekday overflow check
Fixes half of #2457
Iskren Chernev [Tue, 27 Oct 2015 07:55:09 +0000 (00:55 -0700)]
Fix (iso)weekYear setter
Fixes #2033 #1379
Iskren Chernev [Tue, 27 Oct 2015 05:36:08 +0000 (22:36 -0700)]
Add week overflow checks on creation
Fixes half of #2457
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
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
Iskren Chernev [Mon, 9 Nov 2015 02:47:30 +0000 (18:47 -0800)]
Add Hmm and Hmmss tokens
Iskren Chernev [Mon, 26 Oct 2015 08:17:31 +0000 (01:17 -0700)]
Add hmm and hmmss formatting tokens
Fixes #2418
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
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
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
Iskren Chernev [Sat, 10 Oct 2015 20:22:56 +0000 (13:22 -0700)]
Implement stricter weekday parsing
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
Iskren Chernev [Sat, 10 Oct 2015 19:38:56 +0000 (12:38 -0700)]
Add more iso tests variations (strict and non-strict ISO_8601)
Iskren Chernev [Tue, 29 Sep 2015 08:11:40 +0000 (01:11 -0700)]
Use different regexp for extended and basic iso
Iskren Chernev [Tue, 29 Sep 2015 07:47:38 +0000 (00:47 -0700)]
Fix a few crashes with invalid iso strings
Iskren Chernev [Tue, 29 Sep 2015 05:19:17 +0000 (22:19 -0700)]
Implement basic format and comma as ms separator in ISO 8601
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
Iskren Chernev [Thu, 24 Sep 2015 04:36:28 +0000 (21:36 -0700)]
Fix wrong humanize format with weird custom relative thresholds
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
Iskren Chernev [Wed, 23 Sep 2015 17:25:16 +0000 (10:25 -0700)]
Fix strict month parsing issue in cs,ru,sk
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
Iskren Chernev [Tue, 22 Sep 2015 03:02:18 +0000 (20:02 -0700)]
Make jshint/jscs happy
Iskren Chernev [Mon, 21 Sep 2015 02:58:36 +0000 (19:58 -0700)]
Ensure special handling of invalid moments in all moment methods
Iskren Chernev [Sun, 20 Sep 2015 02:01:55 +0000 (19:01 -0700)]
Fix wrong Greek tests
Iskren Chernev [Sun, 20 Sep 2015 01:41:10 +0000 (18:41 -0700)]
get,set,add,subtract handle properly invalid moments
Matt Johnson [Wed, 7 Oct 2015 16:21:19 +0000 (09:21 -0700)]
Merge pull request #2650 from PeterMortensen/develop
Update README.md
Peter Mortensen [Mon, 5 Oct 2015 18:03:37 +0000 (20:03 +0200)]
Update README.md
Expansion.
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
Iskren Chernev [Fri, 31 Jul 2015 04:47:02 +0000 (21:47 -0700)]
Ignore min/tests.js from npm package
Iskren Chernev [Tue, 28 Jul 2015 04:39:50 +0000 (21:39 -0700)]
Build 2.10.6
Iskren Chernev [Tue, 28 Jul 2015 04:36:31 +0000 (21:36 -0700)]
Bump version to 2.10.6
Iskren Chernev [Tue, 28 Jul 2015 04:36:12 +0000 (21:36 -0700)]
Update changelog for 2.10.6
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
Iskren Chernev [Mon, 27 Jul 2015 16:39:57 +0000 (09:39 -0700)]
Fix regression outlined in #2512
Iskren Chernev [Sun, 26 Jul 2015 09:25:49 +0000 (02:25 -0700)]
Add sudo: false to .travis.yml
Iskren Chernev [Sun, 26 Jul 2015 09:15:25 +0000 (02:15 -0700)]
Build 2.10.5
Iskren Chernev [Sun, 26 Jul 2015 09:13:19 +0000 (02:13 -0700)]
Bump version to 2.10.5
Iskren Chernev [Sun, 26 Jul 2015 09:12:34 +0000 (02:12 -0700)]
Update changelog for 2.10.5
Iskren Chernev [Sun, 26 Jul 2015 03:47:30 +0000 (20:47 -0700)]
Implement suggested improvements
Iskren Chernev [Sun, 5 Jul 2015 15:28:40 +0000 (00:28 +0900)]
Support up to milliseconds tokens up to 9 digits, fixes #2436
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
Iskren Chernev [Thu, 9 Jul 2015 08:21:59 +0000 (01:21 -0700)]
Use ratios to convert bubble days to months and years
Iskren Chernev [Wed, 8 Jul 2015 13:25:40 +0000 (21:25 +0800)]
Improved duration bubbling, fixes #2166
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
Iskren Chernev [Sun, 12 Jul 2015 23:09:19 +0000 (16:09 -0700)]
Fix isDSTShifted, fixes #2141
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
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
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
Iskren Chernev [Sun, 26 Jul 2015 03:00:04 +0000 (20:00 -0700)]
Redo #2123 in es6
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
Iskren Chernev [Sun, 26 Jul 2015 03:06:45 +0000 (20:06 -0700)]
Redo 2191 in es6
Iskren Chernev [Sun, 26 Jul 2015 04:27:15 +0000 (21:27 -0700)]
Merge pull request #2508 from ichernev:redo-2124
Redo #2124
Iskren Chernev [Sun, 26 Jul 2015 03:35:38 +0000 (20:35 -0700)]
Redo #2124
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
Iskren Chernev [Sun, 26 Jul 2015 04:25:12 +0000 (21:25 -0700)]
Fix tests
Ignas Nedzinskas [Tue, 16 Jun 2015 14:19:27 +0000 (17:19 +0300)]
nominative month translation added to lt.js language
Iskren Chernev [Wed, 22 Jul 2015 17:17:38 +0000 (10:17 -0700)]
Disable coveralls.io reporting for now
Iskren Chernev [Wed, 22 Jul 2015 17:04:04 +0000 (10:04 -0700)]
Ignore more coverage stuff
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
Benjamin Coe [Mon, 25 May 2015 20:25:15 +0000 (13:25 -0700)]
add coverage reporting using nyc and coveralls
Iskren Chernev [Wed, 22 Jul 2015 16:26:33 +0000 (09:26 -0700)]
Merge pull request #2489 from Xaar37:develop
Update deprecate.js
Xaar37 [Thu, 16 Jul 2015 06:50:31 +0000 (08:50 +0200)]
Update deprecate.js
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
Matt Johnson [Sun, 12 Jul 2015 05:39:51 +0000 (22:39 -0700)]
Expect 0 assertions to fix #2382
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
Matt Johnson [Thu, 9 Jul 2015 18:14:05 +0000 (11:14 -0700)]
Fix test for fractional-hour offsets
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
Iskren Chernev [Sun, 12 Jul 2015 22:07:08 +0000 (15:07 -0700)]
Make jscs happy
Iskren Chernev [Wed, 8 Jul 2015 13:24:15 +0000 (21:24 +0800)]
Support grunt test --only=moment/duration,locale/ru
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
Iskren Chernev [Wed, 8 Jul 2015 11:20:53 +0000 (19:20 +0800)]
Fix function check to workaround old browsers, fixes #2325
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
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
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
Aleksandar Ružičić [Sat, 27 Jun 2015 14:58:46 +0000 (16:58 +0200)]
Fix imports in locale files
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
Joshua Ohlman [Sat, 4 Jul 2015 13:08:46 +0000 (08:08 -0500)]
Add test to ensure invalid moments isSame returns false
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 .
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
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
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
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.
Brett Johnson [Mon, 22 Jun 2015 17:14:13 +0000 (11:14 -0600)]
fix(hu):Improve long date time formats for hungarian.
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
Iskren Chernev [Mon, 13 Jul 2015 00:27:04 +0000 (17:27 -0700)]
Revert autogenerated file changes
Aniruddha Adhikary [Wed, 17 Jun 2015 03:35:31 +0000 (09:35 +0600)]
fix bengali translation of morning
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
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
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
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
Phil Johnson [Thu, 4 Jun 2015 21:11:07 +0000 (17:11 -0400)]
Changing a unit test case that is incorrectly labelled as valid.
Phil Johnson [Thu, 4 Jun 2015 20:48:51 +0000 (16:48 -0400)]
Fixing ISO-8601 date parsing when no time component is present.
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.
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
Brian Wyant [Sun, 10 May 2015 02:06:10 +0000 (22:06 -0400)]
perf: add duration benchmark, cleanup benchmarking output
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