]> git.ipfire.org Git - thirdparty/moment.git/log
thirdparty/moment.git
11 years agoAllowing moment.set() to accept a hash of units
Jordan Sexton [Wed, 30 Jul 2014 05:46:31 +0000 (00:46 -0500)] 
Allowing moment.set() to accept a hash of units

11 years agogrunt-jscs-checker renamed to grunt-jscs
Iskren Chernev [Wed, 30 Jul 2014 05:30:05 +0000 (22:30 -0700)] 
grunt-jscs-checker renamed to grunt-jscs

11 years agoMerge pull request #1807 from ichernev/fix-remaining-lang
Iskren Ivov Chernev [Wed, 30 Jul 2014 05:15:23 +0000 (22:15 -0700)] 
Merge pull request #1807 from ichernev/fix-remaining-lang

Convert 4 remaining languages to locale

11 years agoConvert 4 remaining languages to locale 1807/head
Iskren Chernev [Tue, 29 Jul 2014 16:33:24 +0000 (09:33 -0700)] 
Convert 4 remaining languages to locale

11 years agoAdd a newline at the end of component.json
Iskren Chernev [Wed, 30 Jul 2014 04:38:42 +0000 (21:38 -0700)] 
Add a newline at the end of component.json

11 years agoAdd package_json grunt task to update package.json
Iskren Chernev [Wed, 30 Jul 2014 04:36:30 +0000 (21:36 -0700)] 
Add package_json grunt task to update package.json

package.json contains a list of locale files, that was manually updated until
now. This PR adds a grunt task to update package.json and registers it to run
on release.

fixes #1766

11 years agoMerge pull request #1784 from 97jaz/develop
Iskren Chernev [Fri, 25 Jul 2014 06:17:15 +0000 (23:17 -0700)] 
Merge pull request #1784 from 97jaz/develop

11 years agoAdds comma between day-of-month and year for en-US locale.
Jon Zeppieri [Sat, 19 Jul 2014 00:42:35 +0000 (20:42 -0400)] 
Adds comma between day-of-month and year for en-US locale.

Specifically:
- LL   => 'MMMM D, YYYY'
- LLL  => 'MMMM D, YYYY LT'
- LLLL => ''dddd, MMMM D, YYYY LT'

... and similarly for the lowercase variants.

The use of a comma between the day-of-month and year is standard
practice in US English. See:
- ICU docs [http://demo.icu-project.org/icu-bin/locexp?_=en_US]
  (under Date & Time Patterns)
- Chicago Manual of Style (by way of the Library of Congress)
  [http://lcweb2.loc.gov/ammem/ndlpedit/handbook/numberdate.html]
- Wikipedia [http://en.wikipedia.org/wiki/Date_and_time_notation_in_the_United_States]

11 years agoMerge pull request #1761 from icambron/language_rework
Iskren Ivov Chernev [Fri, 25 Jul 2014 06:05:48 +0000 (23:05 -0700)] 
Merge pull request #1761 from icambron/language_rework

s/lang/locale

11 years agofix jsc error 1761/head
Isaac Cambron [Thu, 24 Jul 2014 22:33:25 +0000 (18:33 -0400)] 
fix jsc error

11 years agofixing tests
Isaac Cambron [Thu, 24 Jul 2014 22:31:06 +0000 (18:31 -0400)] 
fixing tests

11 years agosome reverse compatibility
Isaac Cambron [Thu, 24 Jul 2014 22:21:35 +0000 (18:21 -0400)] 
some reverse compatibility

11 years agoFix deprecation warning on moment().locale()
Isaac Cambron [Wed, 23 Jul 2014 04:13:07 +0000 (00:13 -0400)] 
Fix deprecation warning on moment().locale()

11 years agodefineLocale() now returns the actual locale. Removed tests for the return statement...
Isaac Cambron [Wed, 23 Jul 2014 03:52:55 +0000 (23:52 -0400)] 
defineLocale() now returns the actual locale. Removed tests for the return statement in the locale definitions.

11 years agoMerge pull request #1789 from vajradog/develop
Isaac Cambron [Tue, 22 Jul 2014 15:16:58 +0000 (11:16 -0400)] 
Merge pull request #1789 from vajradog/develop

Tibetan localization

11 years agofixed spacing 1789/head
vajradog [Tue, 22 Jul 2014 03:44:09 +0000 (23:44 -0400)] 
fixed spacing

11 years agomore changes to calendar next week
vajradog [Tue, 22 Jul 2014 03:39:26 +0000 (23:39 -0400)] 
more changes to calendar next week

11 years agofixed more errors and whitespaces
vajradog [Tue, 22 Jul 2014 03:34:09 +0000 (23:34 -0400)] 
fixed more errors and whitespaces

11 years agodeleted some whitespaces and changed date formatting
vajradog [Tue, 22 Jul 2014 03:29:42 +0000 (23:29 -0400)] 
deleted some whitespaces and changed date formatting

11 years agocorrected some assertions in the Tibetan Localization
vajradog [Tue, 22 Jul 2014 03:11:26 +0000 (23:11 -0400)] 
corrected some assertions in the Tibetan Localization

Date formatting in Tibetan can be a bit tricky

11 years agodeleted whitespace in Tibetan localization
vajradog [Tue, 22 Jul 2014 02:37:26 +0000 (22:37 -0400)] 
deleted whitespace in Tibetan localization

11 years agoTibetan localization
vajradog [Tue, 22 Jul 2014 02:21:53 +0000 (22:21 -0400)] 
Tibetan localization

11 years agoMerge pull request #1786 from wernerm/develop
Isaac Cambron [Mon, 21 Jul 2014 21:08:02 +0000 (17:08 -0400)] 
Merge pull request #1786 from wernerm/develop

Added Afrikaans translation

11 years agoAdded Afrikaans language test file 1786/head
Werner Mollentze [Mon, 21 Jul 2014 20:09:38 +0000 (22:09 +0200)] 
Added Afrikaans language test file

11 years agoUpdate af.js
Werner Mollentze [Mon, 21 Jul 2014 20:07:39 +0000 (22:07 +0200)] 
Update af.js

11 years agoAdded Afrikaans translation
Werner Mollentze [Mon, 21 Jul 2014 07:19:59 +0000 (09:19 +0200)] 
Added Afrikaans translation

11 years agoMerge pull request #1778 from gholadr/develop
Isaac Cambron [Mon, 21 Jul 2014 02:58:55 +0000 (22:58 -0400)] 
Merge pull request #1778 from gholadr/develop

Myanmar localization

11 years agomy support 1778/head
David Rossellat [Fri, 18 Jul 2014 03:22:15 +0000 (10:22 +0700)] 
my support

11 years agoincorporating ichernev comments
Isaac Cambron [Mon, 14 Jul 2014 05:12:05 +0000 (01:12 -0400)] 
incorporating ichernev comments

11 years agos/lang/locale
Isaac Cambron [Sat, 5 Jul 2014 08:47:31 +0000 (04:47 -0400)] 
s/lang/locale

 * Deprecated moment.lang(), moment.langData(), moment#lang, and
 duration#lang

 * Added moment.locale(), moment.localeData(), moment#localeData, and
 druation#localeData

 * Added moment.defineLocale() that defines a locale but doesn't set it
 as the global locale (#1750)

 * Removed the hack in the language concatenator that set the language
 to English.

 * Refactored internal code to use moment#localeData instead of local
 functions, and set the language directly on the moment instance at
 creation.

 * Moved all the files and changed the build scripts so that everything
 lives is named "locale" instead of "lang", e.g. the locale files under
 the "locale" directory.

 * I did *not* include build-generated changes like component.json and
 the concated locale files, but I did inspect them to see that they look
 right.

11 years agoMerge pull request #1763 from icambron/add_subtract_order
Isaac Cambron [Mon, 14 Jul 2014 04:36:46 +0000 (00:36 -0400)] 
Merge pull request #1763 from icambron/add_subtract_order

deprecate pre-2.0 add/subtract

11 years agocleanup 1763/head
Isaac Cambron [Mon, 14 Jul 2014 04:36:16 +0000 (00:36 -0400)] 
cleanup

11 years agofix todo
Isaac Cambron [Mon, 14 Jul 2014 04:29:55 +0000 (00:29 -0400)] 
fix todo

11 years agodeprecate pre-2.0 add/subtract
Isaac Cambron [Sun, 6 Jul 2014 07:43:11 +0000 (03:43 -0400)] 
deprecate pre-2.0 add/subtract

11 years agoMerge pull request #1765 from icambron/simplify_readme
Isaac Cambron [Mon, 14 Jul 2014 04:33:24 +0000 (00:33 -0400)] 
Merge pull request #1765 from icambron/simplify_readme

Simplify readme

11 years agofixed spelling 1765/head
Isaac Cambron [Mon, 14 Jul 2014 04:27:55 +0000 (00:27 -0400)] 
fixed spelling

11 years agoMerge pull request #1759 from icambron/iso_vs_ISO
Iskren Ivov Chernev [Tue, 8 Jul 2014 08:05:51 +0000 (01:05 -0700)] 
Merge pull request #1759 from icambron/iso_vs_ISO

Change duration.toIsoString to duration.toISOString

@changelog
@section deprecation
@description rename duration.toIsoString to duration.toISOString

11 years agofixing build
Isaac Cambron [Sun, 6 Jul 2014 18:53:57 +0000 (14:53 -0400)] 
fixing build

11 years agoremove Sauce build from Travis
Isaac Cambron [Sun, 6 Jul 2014 18:51:22 +0000 (14:51 -0400)] 
remove Sauce build from Travis

11 years agoMerge pull request #1764 from austentalbot/develop
Isaac Cambron [Sun, 6 Jul 2014 18:40:15 +0000 (14:40 -0400)] 
Merge pull request #1764 from austentalbot/develop

Convert double quotes to single quotes in moment.js

11 years agoMerge pull request #1727 from Oire/feature/fix-1657
Isaac Cambron [Sun, 6 Jul 2014 18:36:26 +0000 (14:36 -0400)] 
Merge pull request #1727 from Oire/feature/fix-1657

Fixing Belarusian language

11 years agomore simplification
Isaac Cambron [Sun, 6 Jul 2014 18:31:05 +0000 (14:31 -0400)] 
more simplification

11 years agoMove readme simplification
Isaac Cambron [Sun, 6 Jul 2014 18:24:40 +0000 (14:24 -0400)] 
Move readme simplification

 * Rename readme.md to README.md because apparently that's the cool
 thing to do
 * Move more stuff into contributing.md.
 * Make CONTRIBUTING.md a little less yelly because the default branch
 thing seems to be working.

11 years agoSimplify readme
Isaac Cambron [Sun, 6 Jul 2014 17:52:11 +0000 (13:52 -0400)] 
Simplify readme

 * Move the changelog to its own file
 * Make badges look like moment-timezone

11 years agoConvert double quotes to single quotes in moment.js 1764/head
Austen Talbot [Sun, 6 Jul 2014 17:18:11 +0000 (10:18 -0700)] 
Convert double quotes to single quotes in moment.js

11 years agoFixing merge conflicts 1727/head
Andre Polykanine A.K.A. Menelion Elensúlë [Sun, 6 Jul 2014 12:28:38 +0000 (15:28 +0300)] 
Fixing merge conflicts

11 years agoFixed tests according to changes in #1642, see @icambron's last comment
Andre Polykanine A.K.A. Menelion Elensúlë [Sun, 6 Jul 2014 12:18:44 +0000 (15:18 +0300)] 
Fixed tests according to changes in #1642, see @icambron's last comment

11 years agodeprecate pre-2.0 add/subtract
Isaac Cambron [Sun, 6 Jul 2014 07:43:11 +0000 (03:43 -0400)] 
deprecate pre-2.0 add/subtract

11 years agoFixing code style errors
Andre Polykanine A.K.A. Menelion Elensúlë [Fri, 20 Jun 2014 09:47:17 +0000 (12:47 +0300)] 
Fixing code style errors

11 years agoFixing Belarusian language
Andre Polykanine A.K.A. Menelion Elensúlë [Thu, 19 Jun 2014 14:50:07 +0000 (17:50 +0300)] 
Fixing Belarusian language

11 years agoChange duration.toIsoString to duration.toISOString. Closes #1752 1759/head
Isaac Cambron [Thu, 3 Jul 2014 21:04:15 +0000 (17:04 -0400)] 
Change duration.toIsoString to duration.toISOString. Closes #1752

11 years agoMerge pull request #1755 from ichernev/fix-jscs
Isaac Cambron [Thu, 3 Jul 2014 20:42:21 +0000 (16:42 -0400)] 
Merge pull request #1755 from ichernev/fix-jscs

Remove padding newlines in the begining of functions

11 years agoRemove padding newlines in the begining of functions 1755/head
Iskren Chernev [Thu, 3 Jul 2014 08:22:22 +0000 (01:22 -0700)] 
Remove padding newlines in the begining of functions

11 years agoImprove comments in a few tests
Iskren Chernev [Thu, 3 Jul 2014 07:37:13 +0000 (00:37 -0700)] 
Improve comments in a few tests

11 years agoMerge pull request #1720 from tentwentyfour/develop
Isaac Cambron [Tue, 1 Jul 2014 23:25:53 +0000 (19:25 -0400)] 
Merge pull request #1720 from tentwentyfour/develop

simplification of lb.js implementation

11 years agoMerge pull request #1708 from ptbrowne/perf-makeDateFromInput
Isaac Cambron [Tue, 1 Jul 2014 23:06:18 +0000 (19:06 -0400)] 
Merge pull request #1708 from ptbrowne/perf-makeDateFromInput

perf(makeDateFromInput): no need to match regex if input is a Date

11 years agoMerge pull request #1738 from ichernev/bugfix-zone2
Isaac Cambron [Tue, 1 Jul 2014 19:08:05 +0000 (15:08 -0400)] 
Merge pull request #1738 from ichernev/bugfix-zone2

Fix local to utc/zone switching with keepLocalTime option

11 years agoFix local to utc/zone switching with keepLocalTime option 1738/head
Iskren Chernev [Thu, 26 Jun 2014 07:17:35 +0000 (00:17 -0700)] 
Fix local to utc/zone switching with keepLocalTime option

11 years agoFixing code style errors
Andre Polykanine A.K.A. Menelion Elensúlë [Fri, 20 Jun 2014 09:47:17 +0000 (12:47 +0300)] 
Fixing code style errors

11 years agoFixing Belarusian language
Andre Polykanine A.K.A. Menelion Elensúlë [Thu, 19 Jun 2014 14:50:07 +0000 (17:50 +0300)] 
Fixing Belarusian language

11 years agosimplification of lb.js implementation 1720/head
David Raison [Wed, 18 Jun 2014 10:19:03 +0000 (12:19 +0200)] 
simplification of lb.js implementation

11 years agoMerge pull request #1718 from ichernev/jscs-support
Iskren Ivov Chernev [Thu, 19 Jun 2014 08:55:35 +0000 (01:55 -0700)] 
Merge pull request #1718 from ichernev/jscs-support

Jscs support

@changelog
@section misc
@description code style checking with jscs (jshint is only for bug detection)

11 years agoAll test files pass jscs 1718/head
Iskren Chernev [Thu, 19 Jun 2014 08:26:20 +0000 (01:26 -0700)] 
All test files pass jscs

11 years agoAll lang files pass jscs
Iskren Chernev [Tue, 17 Jun 2014 06:40:33 +0000 (23:40 -0700)] 
All lang files pass jscs

11 years agomoment.js now passes jscs
Iskren Chernev [Tue, 17 Jun 2014 06:34:09 +0000 (23:34 -0700)] 
moment.js now passes jscs

11 years agoGruntfile.js now passes jscs
Iskren Chernev [Tue, 17 Jun 2014 06:27:40 +0000 (23:27 -0700)] 
Gruntfile.js now passes jscs

11 years agoFix invalid octal number
Iskren Chernev [Tue, 17 Jun 2014 06:09:33 +0000 (23:09 -0700)] 
Fix invalid octal number

11 years agoAdd jscs task with options
Iskren Chernev [Tue, 17 Jun 2014 06:09:12 +0000 (23:09 -0700)] 
Add jscs task with options

11 years agoMerge pull request #1642 from ichernev/fix-humanize
Iskren Ivov Chernev [Thu, 19 Jun 2014 06:02:11 +0000 (23:02 -0700)] 
Merge pull request #1642 from ichernev/fix-humanize

Fix humanize

@changelog
@section bugfix
@description use duration object for relative duration strings
@breaking relativeTimeThreshold keys are now changed to 's', 'm', 'h', 'd' and 'M'. Also the actual thresholds for changed (46 days is now 1 month, not 2).

11 years agoFix korean test label 1642/head
Iskren Chernev [Wed, 7 May 2014 16:45:07 +0000 (09:45 -0700)] 
Fix korean test label

11 years agoFix language tests
Iskren Chernev [Wed, 7 May 2014 16:44:14 +0000 (09:44 -0700)] 
Fix language tests

11 years agoFix moment tests
Iskren Chernev [Wed, 7 May 2014 16:36:15 +0000 (09:36 -0700)] 
Fix moment tests

11 years agoFix bugs in humanize and asYears
Iskren Chernev [Wed, 7 May 2014 16:18:54 +0000 (09:18 -0700)] 
Fix bugs in humanize and asYears

11 years agointernal relativeTime now accepts only duration object
Iskren Chernev [Sun, 27 Apr 2014 20:26:14 +0000 (13:26 -0700)] 
internal relativeTime now accepts only duration object

11 years agoUse duration object in relativeTime
Iskren Chernev [Sun, 27 Apr 2014 20:09:49 +0000 (13:09 -0700)] 
Use duration object in relativeTime

11 years agoBetter bubbling of days to years in duration
Iskren Chernev [Sat, 26 Apr 2014 19:52:01 +0000 (12:52 -0700)] 
Better bubbling of days to years in duration

11 years agoImplement accurate moment.duration({from, to})
Iskren Chernev [Sat, 26 Apr 2014 08:28:15 +0000 (01:28 -0700)] 
Implement accurate moment.duration({from, to})

11 years agoMerge pull request #1716 from jbrockmeyer/getRelativeTimeThreshold_Issue_1715
Iskren Ivov Chernev [Tue, 17 Jun 2014 06:43:34 +0000 (23:43 -0700)] 
Merge pull request #1716 from jbrockmeyer/getRelativeTimeThreshold_Issue_1715

Fix issue #1715 to retrieve relativeTimeThreshold settings

@changelog
@section features
@description Allow getting relativeTimeThreshold

11 years agoRunt grunt tests for jbrockmeyer's comit for Issue 1715 1716/head
Sam Vincent [Mon, 16 Jun 2014 23:41:00 +0000 (16:41 -0700)] 
Runt grunt tests for jbrockmeyer's comit for Issue 1715

11 years agoMerge pull request #1710 from Oire/feature/fix-1706
Iskren Ivov Chernev [Sun, 15 Jun 2014 19:55:15 +0000 (12:55 -0700)] 
Merge pull request #1710 from Oire/feature/fix-1706

Fixing Lithuanian

@changelog
@section lang-bugfix
@description Fix month name in Italian

11 years agoFixing Lithuanian, see #1706 1710/head
Andre Polykanine A.K.A. Menelion Elensúlë [Sat, 14 Jun 2014 11:11:19 +0000 (14:11 +0300)] 
Fixing Lithuanian, see #1706

11 years agostyle: declare var at top 1708/head
Patrick Browne [Thu, 12 Jun 2014 08:42:45 +0000 (10:42 +0200)] 
style: declare var at top

11 years agoGenerate minified/production files 2.7.0
Iskren Chernev [Thu, 12 Jun 2014 07:01:05 +0000 (00:01 -0700)] 
Generate minified/production files

11 years agoBump version to 2.7.0
Iskren Chernev [Thu, 12 Jun 2014 06:59:31 +0000 (23:59 -0700)] 
Bump version to 2.7.0

11 years agoUpdate readme with 2.7.0 changelog
Iskren Chernev [Thu, 12 Jun 2014 06:58:04 +0000 (23:58 -0700)] 
Update readme with 2.7.0 changelog

11 years agoMerge pull request #1693 from SBSTP/moment-iso-parse
Iskren Ivov Chernev [Thu, 12 Jun 2014 05:25:22 +0000 (22:25 -0700)] 
Merge pull request #1693 from SBSTP/moment-iso-parse

Allow ISO-8601 to be passed as a format.

@changelog
@section features
@description support moment.ISO_8601 as a format in constructor, that would use ISO time format parsing

11 years agoMerge pull request #1704 from seriousben/feature/support_string_value_in_add_subtract
Iskren Ivov Chernev [Thu, 12 Jun 2014 05:10:50 +0000 (22:10 -0700)] 
Merge pull request #1704 from seriousben/feature/support_string_value_in_add_subtract

Support strings in add and subtract

@changelog
@section features
@description support string type for numeric values in add/subtract

11 years agoMerge pull request #1687 from ichernev/bugfix/year-diff-ru
Isaac Cambron [Thu, 12 Jun 2014 04:46:05 +0000 (00:46 -0400)] 
Merge pull request #1687 from ichernev/bugfix/year-diff-ru

Fix broken year diff tests for Russia

11 years agoperf(makeDateFromInput): no need to match regex if input is a Date
Patrick Browne [Wed, 11 Jun 2014 13:37:19 +0000 (15:37 +0200)] 
perf(makeDateFromInput): no need to match regex if input is a Date

The moment constructor when passed a Date should be the fastest. There is
no need to match the aspNetJsonRegex before testing if the `input` is a
Date.

11 years agoSupport string value in add and subtract 1704/head
Benjamin Boudreau [Sun, 8 Jun 2014 21:54:03 +0000 (17:54 -0400)] 
Support string value in add and subtract

11 years agoImplemented suggested changes 1693/head
Simon Bernier St-Pierre [Thu, 5 Jun 2014 14:38:22 +0000 (10:38 -0400)] 
Implemented suggested changes

`moment.js` now has a separate parseISO function which only handles
the parsing. `makeDateFromString` keeps the same behavior and uses
parseISO. The tests have also been refactored and moved into
their own function.

11 years agoMerge pull request #1699 from Oire/feature/fix-1326
Andre Polykanine A.K.A. Menelion Elensúlë [Thu, 5 Jun 2014 12:49:08 +0000 (15:49 +0300)] 
Merge pull request #1699 from Oire/feature/fix-1326

Fixing months capitalization in Italian

11 years agoFixing months capitalization in Italian 1699/head
Andre Polykanine A.K.A. Menelion Elensúlë [Thu, 5 Jun 2014 12:42:31 +0000 (15:42 +0300)] 
Fixing months capitalization in Italian

11 years agoFix version in component.json
Iskren Chernev [Thu, 5 Jun 2014 05:26:11 +0000 (22:26 -0700)] 
Fix version in component.json

11 years agoAdd more relevant tests.
Simon Bernier St-Pierre [Tue, 3 Jun 2014 16:59:54 +0000 (12:59 -0400)] 
Add more relevant tests.

I've added much more relevant tests, checking the _f property
for the format that was used for parsing and _pf.iso in the case
of ISO.

11 years agoFix the second issue
Simon Bernier St-Pierre [Tue, 3 Jun 2014 16:35:21 +0000 (12:35 -0400)] 
Fix the second issue

I've added a useFallback parameter to makeDateFromString. When not
supplied, the old behavior remains. When supplied and true, it does
not call the createFromInputCallback and instead returns an empty
config. This also seems to fix the first issue, it now plays much
nicer with scoring and precendence.

11 years agoAllow ISO-8601 to be passed as a format.
Simon Bernier St-Pierre [Tue, 3 Jun 2014 15:27:27 +0000 (11:27 -0400)] 
Allow ISO-8601 to be passed as a format.

This commit allows the ISO-8601 format to be
passed as a format in the moment(string, array)
constructor. This is a preliminary commit as this
addition as yielded a few issues.

11 years agoFix broken year diff tests for Russia 1687/head
Iskren Chernev [Tue, 3 Jun 2014 06:22:09 +0000 (23:22 -0700)] 
Fix broken year diff tests for Russia

Russia's zone offset is different on 1st of January (something we assumed
impossible in tests). Check to see if that is the case and skip the offending
test.

Fixes #1635 and #1612

11 years agoMerge pull request #1651 from ichernev/fix-timezone-parsing
Isaac Cambron [Mon, 26 May 2014 13:01:36 +0000 (09:01 -0400)] 
Merge pull request #1651 from ichernev/fix-timezone-parsing

Fix timezone parsing by applying the timezone offset after date creation

11 years agoMerge pull request #1650 from ichernev/fix-meridiem-parse-russian
Isaac Cambron [Mon, 26 May 2014 13:00:47 +0000 (09:00 -0400)] 
Merge pull request #1650 from ichernev/fix-meridiem-parse-russian

Implement meridiemParse and isPM in Russian