]> git.ipfire.org Git - thirdparty/moment.git/log
thirdparty/moment.git
13 years agoAdd support for negative four-digit years. 367/head
Jason Davies [Thu, 19 Jul 2012 14:43:25 +0000 (15:43 +0100)] 
Add support for negative four-digit years.

13 years agoAdd tests for C1 and support for six-digit years.
Jason Davies [Thu, 19 Jul 2012 14:33:28 +0000 (15:33 +0100)] 
Add tests for C1 and support for six-digit years.

13 years agoFix parsing/formatting of first century dates.
Jason Davies [Wed, 18 Jul 2012 10:13:31 +0000 (11:13 +0100)] 
Fix parsing/formatting of first century dates.

According to ECMA-262, `new Date(y, …)` will auto-convert `y` to `1900 +
y` if `0 ≤ y ≤ 99`, hence setFullYear or setUTCFullYear is used instead.

This also zero-pads the year for the "YYYY" format, since the year may
not necessarily have four digits.

Lastly, the pt-br test is adjusted to test for the first day of the
month instead of the zeroth (which was causing it to fail).

13 years agoMerge pull request #358 from caio-ribeiro-pereira/develop
Tim Wood [Mon, 16 Jul 2012 16:11:26 +0000 (09:11 -0700)] 
Merge pull request #358 from caio-ribeiro-pereira/develop

Re-send Brazilian i18n

13 years agoMerge pull request #355 from jonbca/develop
Tim Wood [Mon, 16 Jul 2012 16:09:59 +0000 (09:09 -0700)] 
Merge pull request #355 from jonbca/develop

Add English and French Canadian i18n

13 years agoMerge pull request #343 from illicium/develop
Tim Wood [Mon, 16 Jul 2012 16:09:03 +0000 (09:09 -0700)] 
Merge pull request #343 from illicium/develop

Fix month/weekday grammatical cases in Russian

13 years agoFix commit conflits. 358/head
Caio Ribeiro Pereira [Wed, 11 Jul 2012 17:15:08 +0000 (14:15 -0300)] 
Fix commit conflits.

13 years agoMerge branch 'feature/lang-canada' into develop 355/head
Jonathan Abourbih [Tue, 10 Jul 2012 23:17:56 +0000 (00:17 +0100)] 
Merge branch 'feature/lang-canada' into develop

13 years agoUpdate test cases for en-ca and en-fr
Jonathan Abourbih [Tue, 10 Jul 2012 23:17:16 +0000 (00:17 +0100)] 
Update test cases for en-ca and en-fr

13 years agoCopying files for en-CA and fr-CA tests
Jonathan Abourbih [Tue, 10 Jul 2012 23:15:19 +0000 (00:15 +0100)] 
Copying files for en-CA and fr-CA tests

13 years agoAdd Canadian i18n
Jonathan Abourbih [Tue, 10 Jul 2012 23:14:11 +0000 (00:14 +0100)] 
Add Canadian i18n

Add English and French Canadian languages.

13 years agoCopy files for Canadian i18n
Jonathan Abourbih [Tue, 10 Jul 2012 23:13:08 +0000 (00:13 +0100)] 
Copy files for Canadian i18n

13 years agoIncluding pt-br lang. 353/head
Caio Ribeiro Pereira [Tue, 10 Jul 2012 20:15:18 +0000 (17:15 -0300)] 
Including pt-br lang.

13 years agoBackwards compatibility with changing moment.months and other lang properties
Tim Wood [Thu, 5 Jul 2012 17:46:31 +0000 (10:46 -0700)] 
Backwards compatibility with changing moment.months and other lang properties

#332 #334

13 years agoMerge pull request #342 from p-baleine/develop
Tim Wood [Thu, 5 Jul 2012 16:44:24 +0000 (09:44 -0700)] 
Merge pull request #342 from p-baleine/develop

Establish the root object, `window` in the browser, or `global` on the server.

13 years agoMerge pull request #347 from DukeLeNoir/fix-it-translation
Tim Wood [Thu, 5 Jul 2012 16:34:08 +0000 (09:34 -0700)] 
Merge pull request #347 from DukeLeNoir/fix-it-translation

Grammar fixes in the Italian translation

13 years agoMerge pull request #346 from cgbeekman/b74a212203c2ba94b26163ff4942a9885e322fd7
Tim Wood [Thu, 5 Jul 2012 16:31:35 +0000 (09:31 -0700)] 
Merge pull request #346 from cgbeekman/b74a212203c2ba94b26163ff4942a9885e322fd7

Month abbreviation improvements for language nl

13 years agoMerge pull request #340 from BYK/feature/lang/tr-ordinal
Tim Wood [Mon, 2 Jul 2012 21:27:01 +0000 (14:27 -0700)] 
Merge pull request #340 from BYK/feature/lang/tr-ordinal

Fixed ordinal strings for TR language

13 years agofor Closure Compiler "advanced" mode, add `moment` as a global object via a string... 342/head
Tajima Junpei [Mon, 25 Jun 2012 02:32:56 +0000 (11:32 +0900)] 
for Closure Compiler "advanced" mode, add `moment` as a global object via a string identifier

13 years agotest/lang/ru: add format week case test 343/head
Yegor Pomortsev [Sat, 23 Jun 2012 07:16:36 +0000 (00:16 -0700)] 
test/lang/ru: add format week case test

13 years agoregarding global, remove unnecessary assignment
Tajima Junpei [Fri, 22 Jun 2012 00:09:19 +0000 (09:09 +0900)] 
regarding global, remove unnecessary assignment

13 years agogrammar correction on italian translation 347/head
Luca Ongaro [Thu, 21 Jun 2012 13:10:30 +0000 (15:10 +0200)] 
grammar correction on italian translation

13 years agoExclude dot from Dutch month abbreviations when surrounded by dashes. 346/head
Niels Beekman [Wed, 20 Jun 2012 21:42:03 +0000 (23:42 +0200)] 
Exclude dot from Dutch month abbreviations when surrounded by dashes.

13 years agoMerge branch 'develop' of https://github.com/cgbeekman/moment into develop
Niels Beekman [Wed, 20 Jun 2012 20:59:00 +0000 (22:59 +0200)] 
Merge branch 'develop' of https://github.com/cgbeekman/moment into develop

13 years agoSynced nl month abbreviations with CLDR
Niels Beekman [Wed, 20 Jun 2012 20:48:36 +0000 (22:48 +0200)] 
Synced nl month abbreviations with CLDR

13 years agoSynced nl month abbreviations with CLDR
Niels Beekman [Wed, 20 Jun 2012 20:48:36 +0000 (22:48 +0200)] 
Synced nl month abbreviations with CLDR

13 years agolang/ru: L format should be separated by dots, not dashes
Yegor Pomortsev [Wed, 20 Jun 2012 20:26:45 +0000 (13:26 -0700)] 
lang/ru: L format should be separated by dots, not dashes

13 years agolang/ru: add contracted year "marker" in LL/LLL/LLLL formats
Yegor Pomortsev [Wed, 20 Jun 2012 20:25:02 +0000 (13:25 -0700)] 
lang/ru: add contracted year "marker" in LL/LLL/LLLL formats

13 years agolang/ru: use more common contraction for Saturday in weekdaysShort
Yegor Pomortsev [Wed, 20 Jun 2012 20:16:50 +0000 (13:16 -0700)] 
lang/ru: use more common contraction for Saturday in weekdaysShort

13 years agolang/ru: weekdays case regex should be case sensitive
Yegor Pomortsev [Wed, 20 Jun 2012 20:05:57 +0000 (13:05 -0700)] 
lang/ru: weekdays case regex should be case sensitive

13 years agolang/ru: fix months/weekdays noun case
Yegor Pomortsev [Wed, 20 Jun 2012 06:41:49 +0000 (23:41 -0700)] 
lang/ru: fix months/weekdays noun case

13 years agoInstead of using `window` object directly, establish the root object which will be...
Tajima Junpei [Wed, 20 Jun 2012 04:15:35 +0000 (13:15 +0900)] 
Instead of using `window` object directly, establish the root object which will be `window` in the browser or `global` on the server.

13 years agoFixed invalid ordinal function for lang=tr and added more tests to cover edge cases... 340/head
Burak Yigit Kaya [Sun, 17 Jun 2012 10:58:37 +0000 (13:58 +0300)] 
Fixed invalid ordinal function for lang=tr and added more tests to cover edge cases of this new feature.

13 years agoWhitespace OCD and adding hasownproperty to tests
Tim Wood [Thu, 14 Jun 2012 16:54:36 +0000 (09:54 -0700)] 
Whitespace OCD and adding hasownproperty to tests

#399

13 years agoMerge pull request #339 from deleteme/feature/mutable-manipulation
Tim Wood [Thu, 14 Jun 2012 16:00:56 +0000 (09:00 -0700)] 
Merge pull request #339 from deleteme/feature/mutable-manipulation

Feature/mutable manipulation

13 years agoMerge pull request #338 from mcs/develop
Tim Wood [Thu, 14 Jun 2012 15:58:41 +0000 (08:58 -0700)] 
Merge pull request #338 from mcs/develop

3rd try: Fix for test description ...

13 years agostartOf and endOf are now mutable. #335 339/head
Matt Garrett [Thu, 14 Jun 2012 14:02:49 +0000 (09:02 -0500)] 
startOf and endOf are now mutable. #335

Adds new tests to assert the policy
that manipulation methods are mutable.

13 years agoFixed test description for diff test "1 - 0.5" 337/head 338/head
Marcus Krassmann [Thu, 14 Jun 2012 14:00:13 +0000 (16:00 +0200)] 
Fixed test description for diff test "1 - 0.5"

13 years agoAdding in month and weekday callback functions and tests.
Tim Wood [Tue, 12 Jun 2012 18:22:23 +0000 (11:22 -0700)] 
Adding in month and weekday callback functions and tests.

#313 #325 #312

13 years agoMore explicit NodeJS check to fix #314
Tim Wood [Tue, 12 Jun 2012 17:27:18 +0000 (10:27 -0700)] 
More explicit NodeJS check to fix #314

13 years agoTrimming some bytes for #332
Tim Wood [Tue, 12 Jun 2012 17:24:40 +0000 (10:24 -0700)] 
Trimming some bytes for #332

13 years agoMerge pull request #332 from timrwood/feature/instance-lang
Tim Wood [Tue, 12 Jun 2012 17:07:59 +0000 (10:07 -0700)] 
Merge pull request #332 from timrwood/feature/instance-lang

Feature/instance lang

13 years agoUpdating package.json values
Tim Wood [Mon, 11 Jun 2012 23:17:15 +0000 (16:17 -0700)] 
Updating package.json values

13 years agoGrr, more whitespace…not sure how those tabs made it in…
Tim Wood [Mon, 11 Jun 2012 21:14:49 +0000 (14:14 -0700)] 
Grr, more whitespace…not sure how those tabs made it in…

#296

13 years agoWhitespace diff…
Tim Wood [Mon, 11 Jun 2012 21:12:57 +0000 (14:12 -0700)] 
Whitespace diff…

#296

13 years agoPlural or singular case on `endOf` and `startOf`.
Tim Wood [Mon, 11 Jun 2012 21:11:31 +0000 (14:11 -0700)] 
Plural or singular case on `endOf` and `startOf`.

#296

13 years agogetLangDefinition will now automatically load lang 332/head
Rocky Meza [Mon, 11 Jun 2012 17:23:53 +0000 (11:23 -0600)] 
getLangDefinition will now automatically load lang

I extracted the loadLang function out of moment.lang so that it could be
used internally in moment.  When developers use moment.fn.lang or
moment.langData now, if the language requested has not yet been loaded,
it will be loaded.  Unlike moment.lang, these functions do not change
the global language config.

13 years agoCondensing the getLangDefinition function
Rocky Meza [Mon, 11 Jun 2012 16:20:00 +0000 (10:20 -0600)] 
Condensing the getLangDefinition function

13 years agoCondense the duration.fn a little bit.
Rocky Meza [Sun, 10 Jun 2012 19:34:46 +0000 (13:34 -0600)] 
Condense the duration.fn a little bit.

13 years agoexpose the getLangDefinition function
Rocky Meza [Sun, 10 Jun 2012 19:34:36 +0000 (13:34 -0600)] 
expose the getLangDefinition function

13 years agoFix meridiem isUpper/isLower params to match docs
Rocky Meza [Sun, 10 Jun 2012 18:36:10 +0000 (12:36 -0600)] 
Fix meridiem isUpper/isLower params to match docs

There were no tests ensuring that this worked before.  Now, the English
language definition relies on isUpper/isLower.  I think this should be a
good enough test of this.

13 years agoMerge pull request #331 from baryon/master
Tim Wood [Fri, 8 Jun 2012 17:04:37 +0000 (10:04 -0700)] 
Merge pull request #331 from baryon/master

updated Japanese plugin

13 years agoInstance Language Configuration
Rocky Meza [Fri, 8 Jun 2012 04:45:42 +0000 (22:45 -0600)] 
Instance Language Configuration

I have provided a `lang` method on both moment.fn and moment.duration.fn
to allow for instances of moments and durations to have their own
language configuration.  Additionally, the `lang` method is a getter
which returns either the moment's language definition object or the
global language definition object if the moment did not have one set.

Also, I modified the code surrounding meridiem to always expect a
function.  This simplifies the formatter code, and also ensures
inheritability of language configuration values.

13 years agoMerging in feature/isValid
Tim Wood [Fri, 8 Jun 2012 00:01:21 +0000 (17:01 -0700)] 
Merging in feature/isValid

13 years agoMerge pull request #318 from adambrunner/i18n-hu
Tim Wood [Thu, 7 Jun 2012 23:47:35 +0000 (16:47 -0700)] 
Merge pull request #318 from adambrunner/i18n-hu

Hungarian language with unit tests

13 years agobetter comment…
Tim Wood [Wed, 6 Jun 2012 21:47:23 +0000 (14:47 -0700)] 
better comment…

13 years agoCommenting and organizing sections
Tim Wood [Wed, 6 Jun 2012 21:45:54 +0000 (14:45 -0700)] 
Commenting and organizing sections

13 years agoMerging in cached formatter to develop
Tim Wood [Wed, 6 Jun 2012 21:24:40 +0000 (14:24 -0700)] 
Merging in cached formatter to develop

13 years agoMinified lang files out of sync with meridiem changes.
Tim Wood [Mon, 4 Jun 2012 16:58:16 +0000 (09:58 -0700)] 
Minified lang files out of sync with meridiem changes.

#329

13 years agoFixing moment.utc(number). #323
Tim Wood [Thu, 31 May 2012 23:03:45 +0000 (16:03 -0700)] 
Fixing moment.utc(number). #323

13 years agoFixed days index in 'hu' language file and fixed unit test. 318/head
adambrunner [Tue, 29 May 2012 22:02:02 +0000 (00:02 +0200)] 
Fixed days index in 'hu' language file and fixed unit test.

13 years agoHungarian language with unit tests
adambrunner [Sun, 27 May 2012 20:59:35 +0000 (22:59 +0200)] 
Hungarian language with unit tests

13 years agoTrimming some bytes… 317/head
Tim Wood [Fri, 25 May 2012 01:06:08 +0000 (18:06 -0700)] 
Trimming some bytes…

13 years agoAdding support for L LL LLL LLLL LT
Tim Wood [Thu, 24 May 2012 23:40:13 +0000 (16:40 -0700)] 
Adding support for L LL LLL LLLL LT

13 years agoCached format functions like xaprb
Tim Wood [Thu, 24 May 2012 22:17:50 +0000 (15:17 -0700)] 
Cached format functions like xaprb

Still need to inline L LL LLL LLLL LT functions…

13 years agoMerge branch 'develop' of https://github.com/timrwood/moment into develop
Tim Wood [Thu, 24 May 2012 17:28:06 +0000 (10:28 -0700)] 
Merge branch 'develop' of https://github.com/timrwood/moment into develop

13 years agoA better npm description.
Tim Wood [Thu, 24 May 2012 17:27:55 +0000 (10:27 -0700)] 
A better npm description.

13 years agoAdding tests for isValid and moment.utc() 306/head
Tim Wood [Thu, 24 May 2012 16:51:09 +0000 (09:51 -0700)] 
Adding tests for isValid and moment.utc()

13 years agoMerge pull request #262 from eternicode/feature/weekdaysMin
Tim Wood [Thu, 24 May 2012 16:42:29 +0000 (09:42 -0700)] 
Merge pull request #262 from eternicode/feature/weekdaysMin

Support for two-letter days-of-week

13 years agoFix Portuguese weekdaysMin 262/head
Andrew Rowls [Fri, 18 May 2012 13:22:36 +0000 (09:22 -0400)] 
Fix Portuguese weekdaysMin

13 years agofixed a minor LLL format for Japanese 307/head 331/head
LI Long [Tue, 15 May 2012 03:08:19 +0000 (12:08 +0900)] 
fixed a minor LLL format for Japanese

13 years agoDon't title-case weekdaysMin in Norwegian
Andrew Rowls [Mon, 14 May 2012 18:42:17 +0000 (14:42 -0400)] 
Don't title-case weekdaysMin in Norwegian

13 years agoFix French weekdaysMin
Andrew Rowls [Mon, 14 May 2012 18:37:45 +0000 (14:37 -0400)] 
Fix French weekdaysMin

13 years agoDon't title-case weekdaysMin in Swedish
Andrew Rowls [Mon, 14 May 2012 18:12:40 +0000 (14:12 -0400)] 
Don't title-case weekdaysMin in Swedish

13 years agoDon't title-case weekdaysMin in Euskara
Andrew Rowls [Mon, 14 May 2012 17:33:42 +0000 (13:33 -0400)] 
Don't title-case weekdaysMin in Euskara

13 years agoDon't title-case weekdaysMin in Finnish
Andrew Rowls [Mon, 14 May 2012 17:29:56 +0000 (13:29 -0400)] 
Don't title-case weekdaysMin in Finnish

13 years agoUse shorter weekdaysMin in Italian
Andrew Rowls [Mon, 14 May 2012 17:26:50 +0000 (13:26 -0400)] 
Use shorter weekdaysMin in Italian

13 years agoAdd weekdaysMin (dd format) and tests
Andrew Rowls [Mon, 14 May 2012 02:51:26 +0000 (22:51 -0400)] 
Add weekdaysMin (dd format) and tests

13 years agoMerge commit '618441a45f2937d9294e92f73d624f5a7d0ffe1a' into feature/isValid
Tim Wood [Fri, 11 May 2012 19:20:22 +0000 (12:20 -0700)] 
Merge commit '618441a45f2937d9294e92f73d624f5a7d0ffe1a' into feature/isValid

13 years agoChanging file size diff to use 1.6.2 instead of 1.6.1
Tim Wood [Fri, 11 May 2012 19:19:48 +0000 (12:19 -0700)] 
Changing file size diff to use 1.6.2 instead of 1.6.1

13 years agoAdding lang comments for authors and full language name
Tim Wood [Fri, 11 May 2012 17:20:40 +0000 (10:20 -0700)] 
Adding lang comments for authors and full language name

13 years agoFixing tests so that they use actual dates so we can test that hours minutes and...
Tim Wood [Fri, 11 May 2012 16:41:22 +0000 (09:41 -0700)] 
Fixing tests so that they use actual dates so we can test that hours minutes and seconds can fail

I think its impossible to have an invalid fractional second, as it can
be from 0 - 999. Removing the test for it.

13 years agoFixing duplicated unit test names
Tim Wood [Fri, 11 May 2012 16:16:56 +0000 (09:16 -0700)] 
Fixing duplicated unit test names

13 years agoAdding logic for handling whether the array was created with new Date() or Date.utc()
Tim Wood [Thu, 10 May 2012 23:02:37 +0000 (16:02 -0700)] 
Adding logic for handling whether the array was created with new Date() or Date.utc()

13 years agoMore work on isValid
Tim Wood [Thu, 10 May 2012 17:09:17 +0000 (10:09 -0700)] 
More work on isValid

I moved all calls to Date.utc.apply({}, array) into makeDateFromArray.
I also noticed a bug where moment([2010, 0, 0]) would be converted to
moment([2010, 0, 1]) and had to fix a bunch of unit tests that were
dependent on this bug.

13 years agoFirst pass at isValid
Tim Wood [Thu, 10 May 2012 15:39:36 +0000 (08:39 -0700)] 
First pass at isValid

13 years agoMerge pull request #305 from mirontoli/master
Tim Wood [Tue, 8 May 2012 16:30:32 +0000 (09:30 -0700)] 
Merge pull request #305 from mirontoli/master

Added Chuvash Language

13 years agoremoved experimental functions 304/head 305/head
Anatoly Mironov [Sat, 5 May 2012 19:08:08 +0000 (21:08 +0200)] 
removed experimental functions

13 years agoadded chuvash test and lang
Anatoly Mironov [Sat, 5 May 2012 18:46:59 +0000 (20:46 +0200)] 
added chuvash test and lang

13 years agoadded cv.js
Anatoly Mironov [Sat, 5 May 2012 13:32:58 +0000 (15:32 +0200)] 
added cv.js

13 years agoFix merge conflict for 1.6.2
Tim Wood [Fri, 4 May 2012 17:18:27 +0000 (10:18 -0700)] 
Fix merge conflict for 1.6.2

13 years agoMerge branch 'hotfix/1.6.2' 1.6.2
Tim Wood [Fri, 4 May 2012 17:14:04 +0000 (10:14 -0700)] 
Merge branch 'hotfix/1.6.2'

13 years agoBumping version number for 1.6.2 hotfix
Tim Wood [Fri, 4 May 2012 17:14:00 +0000 (10:14 -0700)] 
Bumping version number for 1.6.2 hotfix

13 years agoUpdating built and test files for #300
Tim Wood [Fri, 4 May 2012 17:12:08 +0000 (10:12 -0700)] 
Updating built and test files for #300

13 years agoMerge commit '22176d500f19ab9beb255498ca280dbdf69a7ff2' into hotfix/1.6.2
Tim Wood [Fri, 4 May 2012 17:07:44 +0000 (10:07 -0700)] 
Merge commit '22176d500f19ab9beb255498ca280dbdf69a7ff2' into hotfix/1.6.2

13 years agoMerge commit '22176d500f19ab9beb255498ca280dbdf69a7ff2' into develop
Tim Wood [Fri, 4 May 2012 17:07:06 +0000 (10:07 -0700)] 
Merge commit '22176d500f19ab9beb255498ca280dbdf69a7ff2' into develop

13 years agoMerge pull request #300 from conanca/master
Tim Wood [Fri, 4 May 2012 17:01:16 +0000 (10:01 -0700)] 
Merge pull request #300 from conanca/master

correct the translation of "future"

13 years agoFixing unit tests in all timezones
Tim Wood [Fri, 4 May 2012 16:45:54 +0000 (12:15 -0430)] 
Fixing unit tests in all timezones

13 years agoFixing tests where timezone is multiple of 15 and utc is wrong
Tim Wood [Fri, 4 May 2012 01:30:06 +0000 (18:30 -0700)] 
Fixing tests where timezone is multiple of 15 and utc is wrong

13 years agoMerge branch 'feature/test-all-zones' into develop
Tim Wood [Fri, 4 May 2012 01:21:22 +0000 (18:21 -0700)] 
Merge branch 'feature/test-all-zones' into develop