]> git.ipfire.org Git - thirdparty/moment.git/log
thirdparty/moment.git
10 years agoAdd globalScope hack to more reliably distinguish Node vs browser 2117/head
Lucas Sanders [Mon, 22 Dec 2014 14:40:13 +0000 (09:40 -0500)] 
Add globalScope hack to more reliably distinguish Node vs browser

See #2092: browser-based apps that have DOM nodes with the id
"global" were being detected as Node apps for purposes of assigning
moment to the runtime's global namespace.  This change is intended
to fix that issue for most practical use cases, hopefully without
breaking anyone's existing usage.

Algorithm:  If `global` is not defined, then we want to use
`window`.  If `global` is defined but `window` is not, then we want
to use `global`.  If both `global` and `window` are defined, then
we want to assign to `global` if `window === global.window` --
otherwise we assume that `global === window.global`, in which case
we want to assign to `window`.

10 years agoUse JavaScript instead of javascript in pkg descriptions
Iskren Chernev [Mon, 1 Dec 2014 07:58:05 +0000 (07:58 +0000)] 
Use JavaScript instead of javascript in pkg descriptions

10 years agoMerge pull request #2073 from MeteorPackaging/meteor-integration
Iskren Ivov Chernev [Mon, 1 Dec 2014 06:40:39 +0000 (22:40 -0800)] 
Merge pull request #2073 from MeteorPackaging/meteor-integration

Get rid of the .sh scripts; target all Meteor versions

10 years agoSeparate meteor-publish task, and depend on latest spacejam 2073/head
Dan Dascalescu [Sun, 30 Nov 2014 20:24:44 +0000 (12:24 -0800)] 
Separate meteor-publish task, and depend on latest spacejam

10 years agoGet rid of the .sh scripts; target all Meteor versions
Dan Dascalescu [Sun, 30 Nov 2014 07:15:34 +0000 (23:15 -0800)] 
Get rid of the .sh scripts; target all Meteor versions

10 years agoMore fixes on meteor/publish
Iskren Chernev [Sat, 29 Nov 2014 19:26:24 +0000 (11:26 -0800)] 
More fixes on meteor/publish

10 years agoMerge pull request #2062 from dandv/develop
Iskren Ivov Chernev [Sat, 29 Nov 2014 19:16:41 +0000 (11:16 -0800)] 
Merge pull request #2062 from dandv/develop

Improvements in meteor related files.

10 years agoGrunt task to meteor publish; improved scripts 2062/head
Dan Dascalescu [Sat, 29 Nov 2014 11:11:59 +0000 (03:11 -0800)] 
Grunt task to meteor publish; improved scripts

10 years agoFix Meteor integration and make more robust
Dan Dascalescu [Mon, 24 Nov 2014 03:04:58 +0000 (19:04 -0800)] 
Fix Meteor integration and make more robust

10 years agoFix meteor/publish script
Iskren Chernev [Sun, 23 Nov 2014 05:44:44 +0000 (21:44 -0800)] 
Fix meteor/publish script

10 years agoUpdate bump_version script to work with meteor package
Iskren Chernev [Thu, 20 Nov 2014 18:12:11 +0000 (10:12 -0800)] 
Update bump_version script to work with meteor package

10 years agoMerge pull request #2059 from dandv/develop
Iskren Ivov Chernev [Thu, 20 Nov 2014 18:04:35 +0000 (10:04 -0800)] 
Merge pull request #2059 from dandv/develop

Add packaging for Meteor.js

10 years agoAdd packaging for Meteor.js 2059/head
Dan Dascalescu [Wed, 19 Nov 2014 11:10:51 +0000 (03:10 -0800)] 
Add packaging for Meteor.js

10 years agoBuild 2.8.4 2.8.4
Iskren Chernev [Wed, 19 Nov 2014 04:22:17 +0000 (20:22 -0800)] 
Build 2.8.4

10 years agoBump version to 2.8.4
Iskren Chernev [Wed, 19 Nov 2014 04:20:47 +0000 (20:20 -0800)] 
Bump version to 2.8.4

10 years agoUpdate changelog for 2.8.4
Iskren Chernev [Wed, 19 Nov 2014 04:19:42 +0000 (20:19 -0800)] 
Update changelog for 2.8.4

10 years agoFix global detection in tests
Iskren Chernev [Mon, 17 Nov 2014 18:26:35 +0000 (10:26 -0800)] 
Fix global detection in tests

10 years agoMerge pull request #1933 from szelga:fix-1876
Iskren Chernev [Mon, 17 Nov 2014 17:31:42 +0000 (09:31 -0800)] 
Merge pull request #1933 from szelga:fix-1876

fix #1876

10 years agoShorten switch statement
Iskren Chernev [Mon, 17 Nov 2014 17:31:14 +0000 (09:31 -0800)] 
Shorten switch statement

10 years agosee https://github.com/moment/moment/pull/1933#issuecomment-63302299
Wasil W Siargiejczyk [Mon, 17 Nov 2014 13:49:03 +0000 (18:49 +0500)] 
see https://github.com/moment/moment/pull/1933#issuecomment-63302299

10 years agosee https://github.com/moment/moment/pull/1933#discussion_r18125806
Wasil W Siargiejczyk [Sun, 28 Sep 2014 06:53:38 +0000 (12:53 +0600)] 
see https://github.com/moment/moment/pull/1933#discussion_r18125806

10 years agoadd accusative condition for Russian locale, fix #1876
Wasil W Siargiejczyk [Sun, 21 Sep 2014 11:06:13 +0000 (17:06 +0600)] 
add accusative condition for Russian locale, fix #1876

10 years agomodify tests for Russian locale
Wasil W Siargiejczyk [Sun, 21 Sep 2014 11:05:07 +0000 (17:05 +0600)] 
modify tests for Russian locale

10 years agoalter Russian locale
Wasil W Siargiejczyk [Sun, 21 Sep 2014 10:09:30 +0000 (16:09 +0600)] 
alter Russian locale

10 years agopass present moment to a calendar function
Wasil W Siargiejczyk [Sun, 21 Sep 2014 09:53:32 +0000 (15:53 +0600)] 
pass present moment to a calendar function

10 years agoallow passing additional arguments to calendar function
Wasil W Siargiejczyk [Sun, 21 Sep 2014 09:50:35 +0000 (15:50 +0600)] 
allow passing additional arguments to calendar function

10 years agoMerge pull request #2016 from radekdostal:develop
Iskren Chernev [Mon, 17 Nov 2014 17:23:20 +0000 (09:23 -0800)] 
Merge pull request #2016 from radekdostal:develop

Fix long date format for Czech

10 years agoFix long date format for Czech
Radek Dostál [Wed, 29 Oct 2014 14:52:18 +0000 (15:52 +0100)] 
Fix long date format for Czech

Removed nonbreaking spaces from "L" long date format.

10 years agoMerge pull request #2009 from elliotf:fall_back_to_native_toISOString
Iskren Chernev [Mon, 17 Nov 2014 07:45:36 +0000 (23:45 -0800)] 
Merge pull request #2009 from elliotf:fall_back_to_native_toISOString

Use native toISOString when we can

10 years agoTake advantage of native speed when we can
Elliot Foster [Fri, 24 Oct 2014 23:35:25 +0000 (16:35 -0700)] 
Take advantage of native speed when we can

See #1999

10 years agoMerge pull request #2010 from butterflyhug:fix-locale-warning
Iskren Chernev [Mon, 17 Nov 2014 07:43:02 +0000 (23:43 -0800)] 
Merge pull request #2010 from butterflyhug:fix-locale-warning

Update deprecation warning for moment().lang()

10 years agoUpdate deprecation warning for moment().lang()
Lucas Sanders [Sat, 25 Oct 2014 15:54:46 +0000 (11:54 -0400)] 
Update deprecation warning for moment().lang()

Our advice for users should match our implementation of the
compatibility shim, which uses localeData() as a getter and
locale() as a setter.

10 years agoMerge pull request #1961 from ichernev:add-npm-cleanup-script
Iskren Chernev [Mon, 17 Nov 2014 07:37:03 +0000 (23:37 -0800)] 
Merge pull request #1961 from ichernev:add-npm-cleanup-script

Add a script to prepare moment for npm publish

10 years agoUse whitelist instead of blacklist
Iskren Chernev [Thu, 9 Oct 2014 09:22:55 +0000 (02:22 -0700)] 
Use whitelist instead of blacklist

10 years agoAdd a script to prepare moment for npm publish
Iskren Chernev [Tue, 7 Oct 2014 05:42:13 +0000 (22:42 -0700)] 
Add a script to prepare moment for npm publish

10 years agoMerge pull request #1925 from jsmreese:fix-duration-as-getters
Iskren Chernev [Mon, 17 Nov 2014 07:31:05 +0000 (23:31 -0800)] 
Merge pull request #1925 from jsmreese:fix-duration-as-getters

Fix duration as getters (years and months convert to whole days)

10 years agowhitespace
John Madhavan-Reese [Sat, 13 Sep 2014 04:46:21 +0000 (00:46 -0400)] 
whitespace

10 years agowhitespace
John Madhavan-Reese [Sat, 13 Sep 2014 04:23:27 +0000 (00:23 -0400)] 
whitespace

10 years agoRemoved old duration as getter tests.
John Madhavan-Reese [Sat, 13 Sep 2014 04:18:30 +0000 (00:18 -0400)] 
Removed old duration as getter tests.

10 years agoAdded new duration as getter tests.
John Madhavan-Reese [Sat, 13 Sep 2014 04:17:24 +0000 (00:17 -0400)] 
Added new duration as getter tests.

10 years agoUse Math.round instead of Math.floor for more realistic days output.
John Madhavan-Reese [Fri, 12 Sep 2014 21:16:07 +0000 (17:16 -0400)] 
Use Math.round instead of Math.floor for more realistic days output.

10 years agoComment out old duration as getter tests.
John Madhavan-Reese [Fri, 12 Sep 2014 21:05:33 +0000 (17:05 -0400)] 
Comment out old duration as getter tests.

10 years agoRound yearsToDays output to a whole number.
John Madhavan-Reese [Fri, 12 Sep 2014 21:00:07 +0000 (17:00 -0400)] 
Round yearsToDays output to a whole number.

10 years agoMerge pull request #2008 from ichernev:fix-end-of
Iskren Chernev [Mon, 17 Nov 2014 07:17:02 +0000 (23:17 -0800)] 
Merge pull request #2008 from ichernev:fix-end-of

Fix endOf handling of no-arg and ms

10 years agoFix endOf handling of no-arg and ms
Iskren Chernev [Fri, 24 Oct 2014 07:37:07 +0000 (11:37 +0400)] 
Fix endOf handling of no-arg and ms

10 years agoMerge pull request #2003 from ichernev:detect-big-hours
Iskren Chernev [Mon, 17 Nov 2014 06:54:30 +0000 (22:54 -0800)] 
Merge pull request #2003 from ichernev:detect-big-hours

Detect hours above 12 with h/hh tokens

10 years agoDetect hours above 12 with h/hh tokens
Iskren Chernev [Wed, 22 Oct 2014 18:00:30 +0000 (11:00 -0700)] 
Detect hours above 12 with h/hh tokens

Update the docs about parsingFlags to include bigHour key.
Fixes #1734

10 years agoMerge pull request #2002 from ichernev:accept-date-key-object
Iskren Chernev [Mon, 17 Nov 2014 06:50:28 +0000 (22:50 -0800)] 
Merge pull request #2002 from ichernev:accept-date-key-object

Accept 'date' when creating moment with object

10 years agoAccept 'date' when creating moment with object
Iskren Chernev [Wed, 22 Oct 2014 17:17:30 +0000 (10:17 -0700)] 
Accept 'date' when creating moment with object

10 years agoMerge pull request #1992 from ichernev:bugfix/strict-month-parsing
Iskren Chernev [Mon, 17 Nov 2014 06:39:15 +0000 (22:39 -0800)] 
Merge pull request #1992 from ichernev:bugfix/strict-month-parsing

Fix strict month parsing of abbreviated/full months

10 years agoMake jscs happy
Iskren Chernev [Wed, 22 Oct 2014 17:21:55 +0000 (10:21 -0700)] 
Make jscs happy

10 years agoFix strict month parsing of abbreviated/full months
Iskren Chernev [Fri, 17 Oct 2014 09:06:45 +0000 (02:06 -0700)] 
Fix strict month parsing of abbreviated/full months

10 years agoMerge pull request #1974 from ichernev:locale-export
Iskren Chernev [Mon, 17 Nov 2014 06:34:23 +0000 (22:34 -0800)] 
Merge pull request #1974 from ichernev:locale-export

Locale export for meteor server environment

10 years agoFix comment
Iskren Chernev [Fri, 10 Oct 2014 08:27:49 +0000 (01:27 -0700)] 
Fix comment

10 years agoUse global or this instead of window
Iskren Chernev [Fri, 10 Oct 2014 08:24:35 +0000 (01:24 -0700)] 
Use global or this instead of window

10 years agoMerge pull request #1965 from ichernev:support-24
Iskren Chernev [Mon, 17 Nov 2014 06:30:45 +0000 (22:30 -0800)] 
Merge pull request #1965 from ichernev:support-24

Support 24:00:00.000 to mean next day, at midnight.

10 years agoAdd is_valid tests
Iskren Chernev [Mon, 17 Nov 2014 06:30:18 +0000 (22:30 -0800)] 
Add is_valid tests

10 years agoSupport 24:00:00.000 to mean next day, at midnight.
Iskren Chernev [Tue, 7 Oct 2014 10:19:47 +0000 (03:19 -0700)] 
Support 24:00:00.000 to mean next day, at midnight.

10 years agoMerge pull request #1952 from ichernev:bugfix/fix-cmp-functions
Iskren Chernev [Mon, 17 Nov 2014 06:22:05 +0000 (22:22 -0800)] 
Merge pull request #1952 from ichernev:bugfix/fix-cmp-functions

New implementation of isBefore/isSame/isAfter

10 years agoNew implementation of isBefore/isSame/isAfter. Need tests
Iskren Chernev [Sun, 28 Sep 2014 21:59:46 +0000 (14:59 -0700)] 
New implementation of isBefore/isSame/isAfter. Need tests

10 years agoFix broken Catalan tests
Iskren Chernev [Mon, 17 Nov 2014 06:13:50 +0000 (22:13 -0800)] 
Fix broken Catalan tests

10 years agoMerge pull request #1771 from mpal9000:patch-1
Iskren Chernev [Mon, 17 Nov 2014 06:08:02 +0000 (22:08 -0800)] 
Merge pull request #1771 from mpal9000:patch-1

Update el.js

10 years agoUpdate el.js (tests)
mpal9000 [Sun, 13 Jul 2014 20:48:40 +0000 (23:48 +0300)] 
Update el.js (tests)

10 years agoUpdate el.js
mpal9000 [Sun, 13 Jul 2014 19:56:57 +0000 (22:56 +0300)] 
Update el.js

Include the "a few" prefix to `relativeTime.s`.

10 years agoMerge pull request #1898 from endrejeges:develop
Iskren Chernev [Mon, 17 Nov 2014 05:50:07 +0000 (21:50 -0800)] 
Merge pull request #1898 from endrejeges:develop

Bosnian translation of August

10 years agoBosnian translation of August
ejeges [Sat, 30 Aug 2014 10:30:53 +0000 (12:30 +0200)] 
Bosnian translation of August

10 years agoMerge pull request #1928 from grexican:develop
Iskren Chernev [Mon, 17 Nov 2014 05:48:37 +0000 (21:48 -0800)] 
Merge pull request #1928 from grexican:develop

IE11 has module == null which breaks UMD test

10 years agoIn IE11 I'm seeing module being registered as type "object" but is null. This also...
Eli Gassert [Mon, 15 Sep 2014 15:09:57 +0000 (11:09 -0400)] 
In IE11 I'm seeing module being registered as type "object" but is null. This also makes sure that, even if module is not undefined, it is also not null before checking property export.

10 years agoMerge pull request #1960 from doedje:develop
Iskren Chernev [Mon, 17 Nov 2014 05:43:35 +0000 (21:43 -0800)] 
Merge pull request #1960 from doedje:develop

added formatToken 'x' for unix offset in milliseconds #1938

10 years agoadded parseTokenOffsetMs, using toInt() not parseInt(x,10)
Remy Blom [Thu, 9 Oct 2014 07:31:16 +0000 (09:31 +0200)] 
added parseTokenOffsetMs, using toInt() not parseInt(x,10)

10 years agoremoved the unixms function in favor of valueOf()
Remy Blom [Thu, 9 Oct 2014 07:23:09 +0000 (09:23 +0200)] 
removed the unixms function in favor of valueOf()

10 years agoadded formatToken 'x' for unix offset in milliseconds #1938
Remy Blom [Mon, 6 Oct 2014 13:11:39 +0000 (15:11 +0200)] 
added formatToken 'x' for unix offset in milliseconds #1938

10 years agoMerge pull request #1967 from msonsona:develop
Iskren Chernev [Mon, 17 Nov 2014 05:33:58 +0000 (21:33 -0800)] 
Merge pull request #1967 from msonsona:develop

Fix catalan ordinals

10 years agouse feminine suffix for weeks' ordinals
Miquel Sonsona [Mon, 13 Oct 2014 16:58:44 +0000 (18:58 +0200)] 
use feminine suffix for weeks' ordinals

10 years agoFix catalan ordinals
Miquel Sonsona [Tue, 7 Oct 2014 12:22:48 +0000 (14:22 +0200)] 
Fix catalan ordinals

As in https://ca.wikipedia.org/wiki/Numerals_en_catal%C3%A0#Ordinals

10 years agoMerge pull request #1971 from skakz:develop
Iskren Chernev [Mon, 17 Nov 2014 05:29:05 +0000 (21:29 -0800)] 
Merge pull request #1971 from skakz:develop

Fix for Italian calendar time translation for Sunday weekday

10 years agoUpdate it.js
skakz [Thu, 9 Oct 2014 08:19:54 +0000 (10:19 +0200)] 
Update it.js

10 years agoUpdate it.js
skakz [Thu, 9 Oct 2014 08:03:44 +0000 (10:03 +0200)] 
Update it.js

10 years agoUpdate it.js
skakz [Thu, 9 Oct 2014 07:56:53 +0000 (09:56 +0200)] 
Update it.js

10 years agoUpdate it.js
skakz [Thu, 9 Oct 2014 07:29:07 +0000 (09:29 +0200)] 
Update it.js

10 years agoUpdate it.js
skakz [Thu, 9 Oct 2014 07:22:25 +0000 (09:22 +0200)] 
Update it.js

10 years agoMerge pull request #2000 from mattgrande:develop
Iskren Chernev [Mon, 17 Nov 2014 05:27:33 +0000 (21:27 -0800)] 
Merge pull request #2000 from mattgrande:develop

Display localized time with seconds (Improvement requested in #1997)

10 years agoFix style issue.
Matt Grande [Tue, 21 Oct 2014 23:50:22 +0000 (19:50 -0400)] 
Fix style issue.

10 years agoUpdating localization files and associated tests.
Matt Grande [Tue, 21 Oct 2014 23:37:05 +0000 (19:37 -0400)] 
Updating localization files and associated tests.

10 years agoAdd basic support for Local Time with Seconds (LTS) token. Not yet localized.
Matt Grande [Tue, 21 Oct 2014 14:31:27 +0000 (10:31 -0400)] 
Add basic support for Local Time with Seconds (LTS) token. Not yet localized.

10 years agoMerge pull request #2001 from mj1856:develop
Iskren Chernev [Mon, 17 Nov 2014 05:19:03 +0000 (21:19 -0800)] 
Merge pull request #2001 from mj1856:develop

Handle moment.utc(s) fallback

10 years agoHandle moment.utc(s) fallback
Matt Johnson [Wed, 22 Oct 2014 04:41:09 +0000 (21:41 -0700)] 
Handle moment.utc(s) fallback

Fixes #1983

10 years agoMerge pull request #2004 from ichernev:bugfix-make-as
Iskren Chernev [Mon, 17 Nov 2014 05:16:39 +0000 (21:16 -0800)] 
Merge pull request #2004 from ichernev:bugfix-make-as

Fix makeAs to work with zoned moments

10 years agoFix makeAs to work with zoned moments
Iskren Chernev [Wed, 22 Oct 2014 18:50:29 +0000 (11:50 -0700)] 
Fix makeAs to work with zoned moments

Clone the model to get all plugin data (like zones), than move the time so that
it matches the input and recompute the timezone.

Closes #1952, #1956, #1772

10 years agoMerge pull request #2013 from nchereva/russan-locale-update
Iskren Chernev [Mon, 17 Nov 2014 04:27:17 +0000 (20:27 -0800)] 
Merge pull request #2013 from nchereva/russan-locale-update

Updated russian locale for months.

10 years agoUpdated tests
nchereva [Wed, 29 Oct 2014 11:17:26 +0000 (14:17 +0300)] 
Updated tests

10 years agoUpdated russian locale.
nchereva [Wed, 29 Oct 2014 00:04:14 +0000 (03:04 +0300)] 
Updated russian  locale.

Changed short month name for march. Just like june and july in russian
march has only 4 letters, so  full name could be used instead of short.

10 years agoMerge pull request #2015 from kleinph/locale-de
Iskren Chernev [Mon, 17 Nov 2014 04:24:23 +0000 (20:24 -0800)] 
Merge pull request #2015 from kleinph/locale-de

Merge branch 'remove-uhr-de' into develop

10 years agoStrip 'Uhr' suffix from localized formats (in german locales)
Philipp Klein [Wed, 29 Oct 2014 10:45:24 +0000 (11:45 +0100)] 
Strip 'Uhr' suffix from localized formats (in german locales)

The 'Uhr' suffix is not as part of a time string as 'AM'/'PM' would be.
So remove it from the localized formats (LT, LLL and LLLL) but keep it
in calendar time.
Also update the tests.

10 years agoMerge pull request #2044 from ChicagoDev/contrib_doc_typo
Iskren Ivov Chernev [Sun, 16 Nov 2014 22:27:43 +0000 (14:27 -0800)] 
Merge pull request #2044 from ChicagoDev/contrib_doc_typo

Modified CONTRIBUTING.md in order to correct a duplicate wording...

10 years agoModified CONTRIBUTING.md in order to correct a duplicate wording of the word "pull". 2044/head
Blake Gideon [Tue, 11 Nov 2014 04:42:01 +0000 (22:42 -0600)] 
Modified CONTRIBUTING.md in order to correct a duplicate wording of the word "pull".

10 years agoSet grunt-jscs to 0.7.1, latest one is buggy
Iskren Chernev [Fri, 17 Oct 2014 08:04:23 +0000 (01:04 -0700)] 
Set grunt-jscs to 0.7.1, latest one is buggy

10 years agoMerge pull request #1951 from ichernev/bugfix/ordinal-parsing
Isaac Cambron [Wed, 1 Oct 2014 14:16:46 +0000 (10:16 -0400)] 
Merge pull request #1951 from ichernev/bugfix/ordinal-parsing

Add ordinalParse to all locales

10 years agoFix preparse for Arabic 1951/head
Iskren Chernev [Wed, 1 Oct 2014 08:16:09 +0000 (01:16 -0700)] 
Fix preparse for Arabic

10 years agoAdd ordial parse tests for all locales
Iskren Chernev [Wed, 1 Oct 2014 07:43:26 +0000 (00:43 -0700)] 
Add ordial parse tests for all locales