]> git.ipfire.org Git - thirdparty/moment.git/log
thirdparty/moment.git
11 years agoFixed cloning a modified duration 1243/head
Iskren Chernev [Thu, 31 Oct 2013 18:30:32 +0000 (11:30 -0700)] 
Fixed cloning a modified duration

Storing the _input for creating a duration doesn't work for cloning when the
original duration is modified, because input no longer corresponds to the new
duration. Instead use the ms, days and month values which uniquely identify
a duration.

This also happens to fix #1242

11 years agoMerge pull request #1238 from jgerigmeyer/develop
Iskren Ivov Chernev [Thu, 31 Oct 2013 17:06:46 +0000 (10:06 -0700)] 
Merge pull request #1238 from jgerigmeyer/develop

Add specific check for "require" in hasModule check.

11 years agoMerge pull request #1240 from YannickL/develop
Iskren Ivov Chernev [Thu, 31 Oct 2013 17:04:39 +0000 (10:04 -0700)] 
Merge pull request #1240 from YannickL/develop

Fix albanian translation

11 years ago[UPDATE] Albanian Tests 1240/head
Yannick Loriot [Wed, 30 Oct 2013 15:33:14 +0000 (16:33 +0100)] 
[UPDATE] Albanian Tests

11 years agoMerge branch 'develop' of https://github.com/moment/moment into develop
Yannick Loriot [Wed, 30 Oct 2013 15:27:43 +0000 (16:27 +0100)] 
Merge branch 'develop' of https://github.com/moment/moment into develop

11 years ago[FIX] Albanian translation
Yannick Loriot [Wed, 30 Oct 2013 13:26:30 +0000 (14:26 +0100)] 
[FIX] Albanian translation

11 years agoAdd specific check for "require" in hasModule check (fixes bug when using with QUnit). 1238/head
Jonny Gerig Meyer [Wed, 30 Oct 2013 00:01:24 +0000 (18:01 -0600)] 
Add specific check for "require" in hasModule check (fixes bug when using with QUnit).

11 years agoMerge pull request #1224 from zenozeng/develop
Isaac Cambron [Sun, 27 Oct 2013 03:25:22 +0000 (20:25 -0700)] 
Merge pull request #1224 from zenozeng/develop

update test/lang/zh-cn.js, skip next week test if target is tomorrow

11 years agoupdate test/lang/zh-cn.js, skip next week test if target is tomorrow 1224/head
Zeno Zeng [Sun, 27 Oct 2013 02:54:13 +0000 (10:54 +0800)] 
update test/lang/zh-cn.js, skip next week test if target is tomorrow

11 years agoBumping version to 2.4.0 2.4.0
Iskren Chernev [Sun, 27 Oct 2013 02:25:24 +0000 (19:25 -0700)] 
Bumping version to 2.4.0

11 years agoFix globally-exporter wrapper
Iskren Chernev [Sun, 27 Oct 2013 02:18:03 +0000 (19:18 -0700)] 
Fix globally-exporter wrapper

11 years agoMerge pull request #1220 from ichernev/deprecate-global
Isaac Cambron [Sat, 26 Oct 2013 19:56:53 +0000 (12:56 -0700)] 
Merge pull request #1220 from ichernev/deprecate-global

Deprecate use of globally exported moment in case of AMD and CommonJS

11 years agoDeprecate use of globally exported moment in case of AMD and CommonJS 1220/head
Iskren Chernev [Sat, 26 Oct 2013 07:08:38 +0000 (00:08 -0700)] 
Deprecate use of globally exported moment in case of AMD and CommonJS

This is discussed in #1214. If moment is exported as a global in AMD or
CommonJS print a warning once the global is used.

11 years agoMerge pull request #1219 from ichernev/bugfix/ie8-fixes
Iskren Ivov Chernev [Sat, 26 Oct 2013 06:08:50 +0000 (23:08 -0700)] 
Merge pull request #1219 from ichernev/bugfix/ie8-fixes

Removed forEach from format tests

11 years agoRemoved forEach from format tests 1219/head
Iskren Chernev [Fri, 25 Oct 2013 06:36:29 +0000 (23:36 -0700)] 
Removed forEach from format tests

11 years agoMerge pull request #1195 from jarosluv/develop
Isaac Cambron [Fri, 25 Oct 2013 20:25:54 +0000 (13:25 -0700)] 
Merge pull request #1195 from jarosluv/develop

Modified regular expressions for support wrapping in tags.

11 years agoMerge remote-tracking branch 'origin/develop' into develop 1195/head
jarosluv [Fri, 25 Oct 2013 20:04:23 +0000 (00:04 +0400)] 
Merge remote-tracking branch 'origin/develop' into develop

Conflicts:
lang/ru.js

11 years agoModified regular expressions for correct formatting of grammatical cases in Russian...
jarosluv [Wed, 16 Oct 2013 10:53:21 +0000 (14:53 +0400)] 
Modified regular expressions for correct formatting of grammatical cases in Russian language. Escaped symbols doesn't affect the correct format of grammatical cases in pattern 'D[oD]? MMMM?'.

11 years agoMerge pull request #1217 from hjdivad/bugfix-tolerate-mock-dates
Isaac Cambron [Fri, 25 Oct 2013 01:44:32 +0000 (18:44 -0700)] 
Merge pull request #1217 from hjdivad/bugfix-tolerate-mock-dates

Fix regression re: support for mock dates.

11 years agoFix regression re: support for mock dates. 1217/head
David J. Hamilton [Thu, 24 Oct 2013 23:13:42 +0000 (16:13 -0700)] 
Fix regression re: support for mock dates.

`moment(input)` needs to determine if `input` is a date.  The mechanism for
doing this was changed in ab7824f1dcca22bdb8b73f7f98cf660305a73211 to deal with
issue #1084, namely that in a node REPL `globals.Date` may not be the same
`Date` used by moment.

However, this prevents users from changing `Date`, for example by mocking it via
something like [Timecop.js](https://github.com/jamesarosen/Timecop.js).

This commit makes date checking lenient enough to handle both cases.

11 years agoMerge pull request #1215 from robgallen/develop
Isaac Cambron [Thu, 24 Oct 2013 18:51:42 +0000 (11:51 -0700)] 
Merge pull request #1215 from robgallen/develop

Welsh language support

11 years agoUpdate and rename cy-gb.js to cy.js 1215/head
Robert Allen [Thu, 24 Oct 2013 18:45:49 +0000 (19:45 +0100)] 
Update and rename cy-gb.js to cy.js

11 years agoUpdate and rename cy-gb.js to cy.js
Robert Allen [Thu, 24 Oct 2013 18:45:00 +0000 (19:45 +0100)] 
Update and rename cy-gb.js to cy.js

11 years agoWelsh translation tests
Robert Allen [Thu, 24 Oct 2013 15:55:50 +0000 (16:55 +0100)] 
Welsh translation tests

11 years agoWelsh translations
Robert Allen [Thu, 24 Oct 2013 15:55:15 +0000 (16:55 +0100)] 
Welsh translations

11 years agofix spelling error in tagalog test
Isaac Cambron [Thu, 24 Oct 2013 15:01:09 +0000 (11:01 -0400)] 
fix spelling error in tagalog test

11 years agoadding missing semicolons
Isaac Cambron [Thu, 24 Oct 2013 14:58:49 +0000 (10:58 -0400)] 
adding missing semicolons

11 years agoMerge pull request #1212 from ichernev/bugfix/iso-is-valid-tests
Isaac Cambron [Thu, 24 Oct 2013 14:51:28 +0000 (07:51 -0700)] 
Merge pull request #1212 from ichernev/bugfix/iso-is-valid-tests

Fixed iso is_valid tests

11 years agoMerge pull request #1213 from ichernev/bugfix/allow-arbitrary-ms-iso-format
Isaac Cambron [Thu, 24 Oct 2013 14:51:11 +0000 (07:51 -0700)] 
Merge pull request #1213 from ichernev/bugfix/allow-arbitrary-ms-iso-format

Allow arbitrary number of milliseconds in iso format

11 years agoFixed iso is_valid tests 1212/head
Iskren Chernev [Thu, 24 Oct 2013 09:12:46 +0000 (02:12 -0700)] 
Fixed iso is_valid tests

In iso date-time format time is always separated by date with 'T', so make sure
all tests that expect to go through the iso parser have a 'T'.

11 years agoAllow arbitrary number of milliseconds in iso format 1213/head
Iskren Chernev [Thu, 24 Oct 2013 09:09:59 +0000 (02:09 -0700)] 
Allow arbitrary number of milliseconds in iso format

According to the standard (I'm not sure actually), arbitrary number of
subsecond precision digits can be specified. Read all of those and ignore
everything after the third. This makes sure that iso formats actualy consume
the whole string.

11 years agoMerge pull request #1206 from ragnar123/momentjs-faroese
Isaac Cambron [Wed, 23 Oct 2013 19:28:06 +0000 (12:28 -0700)] 
Merge pull request #1206 from ragnar123/momentjs-faroese

Moment faroese language

11 years agoFixed I/Í issue (fo-locale) 1206/head
Ragnar Johannesen [Wed, 23 Oct 2013 08:55:56 +0000 (09:55 +0100)] 
Fixed I/Í issue (fo-locale)

11 years agoAdded faroese language
Ragnar Johannesen [Wed, 23 Oct 2013 08:51:18 +0000 (09:51 +0100)] 
Added faroese language

11 years agoMerge pull request #1197 from hagmandan/cldr
Isaac Cambron [Fri, 18 Oct 2013 22:38:20 +0000 (15:38 -0700)] 
Merge pull request #1197 from hagmandan/cldr

Added tagalog support

11 years agoupdated test file 1197/head
Dan Hagman [Fri, 18 Oct 2013 17:31:03 +0000 (10:31 -0700)] 
updated test file

11 years agoadded tagalog support
Daniel Hagman [Wed, 16 Oct 2013 23:24:07 +0000 (16:24 -0700)] 
added tagalog support

11 years agoModified regular expressions for support wrapping in tags.
jarosluv [Wed, 16 Oct 2013 10:53:21 +0000 (14:53 +0400)] 
Modified regular expressions for support wrapping in tags.

11 years agoadded tl-ph for tagalog
Daniel Hagman [Tue, 15 Oct 2013 22:34:07 +0000 (15:34 -0700)] 
added tl-ph for tagalog

11 years agoMerge pull request #1187 from icambron/fix-trailing-z
Iskren Ivov Chernev [Tue, 15 Oct 2013 04:24:44 +0000 (21:24 -0700)] 
Merge pull request #1187 from icambron/fix-trailing-z

fixes for Z in ISO parser

11 years agoMerge branch 'develop' of github.com:moment/moment into fix-trailing-z 1187/head
Isaac Cambron [Mon, 14 Oct 2013 17:39:54 +0000 (13:39 -0400)] 
Merge branch 'develop' of github.com:moment/moment into fix-trailing-z

11 years agoMerge pull request #1188 from zenozeng/develop
Isaac Cambron [Mon, 14 Oct 2013 17:31:29 +0000 (10:31 -0700)] 
Merge pull request #1188 from zenozeng/develop

Update test/lang/zh-cn.js, Fixes #1184

11 years agoFixes #1184 1188/head
Zeno Zeng [Mon, 14 Oct 2013 14:42:03 +0000 (22:42 +0800)] 
Fixes #1184

11 years agofixes for Z in ISO parser
Isaac Cambron [Mon, 14 Oct 2013 08:28:35 +0000 (04:28 -0400)] 
fixes for Z in ISO parser

11 years agoMerge pull request #1185 from ichernev/bugfix/do-not-handle-ampm-end-of-iso
Isaac Cambron [Mon, 14 Oct 2013 07:39:40 +0000 (00:39 -0700)] 
Merge pull request #1185 from ichernev/bugfix/do-not-handle-ampm-end-of-iso

Another breaking test because of stricter iso parser

11 years agoAnother breaking test because of stricter iso parser 1185/head
Iskren Chernev [Mon, 14 Oct 2013 07:30:41 +0000 (00:30 -0700)] 
Another breaking test because of stricter iso parser

This time there is am added at the end, which was never parsed as part of iso
format, so if it was pm it would result in a wrong parse.

Deleting this test. Docs don't say this is possible, right :)

11 years agoMerge pull request #1183 from ichernev/bugfix/utc-at-end-of-iso-format
Isaac Cambron [Mon, 14 Oct 2013 07:06:52 +0000 (00:06 -0700)] 
Merge pull request #1183 from ichernev/bugfix/utc-at-end-of-iso-format

Removed a failing iso-format parsing test

11 years agoRemoved a failing iso-format parsing test 1183/head
Iskren Chernev [Mon, 14 Oct 2013 07:01:42 +0000 (00:01 -0700)] 
Removed a failing iso-format parsing test

One of the things that is broken on Android is "including a trailing UTC in the
input should work", which is a test added a long time ago, that used the fact
that ISO format matched beginning of string.

So right now this test goes through Date, which is different on regular vs
mobile browser. Also adding UTC at the end doesn't make it parse a UTC date, so
its misleading to say the least.

I think removing the test makes the most sense in this case. The behavior (of
adding UTC at the end is not documented, so shouldn't break legitimate code).

11 years agoMerge branch 'develop' of github.com:zenozeng/moment into zenozeng-develop
Iskren Chernev [Sun, 13 Oct 2013 08:48:39 +0000 (01:48 -0700)] 
Merge branch 'develop' of github.com:zenozeng/moment into zenozeng-develop

Conflicts:
lang/zh-cn.js

11 years agoRemoved scripts reset in tasks/component.js
Iskren Chernev [Sun, 13 Oct 2013 08:40:09 +0000 (01:40 -0700)] 
Removed scripts reset in tasks/component.js

11 years agoMerge pull request #1172 from wejendorp/develop
Iskren Ivov Chernev [Sun, 13 Oct 2013 08:39:11 +0000 (01:39 -0700)] 
Merge pull request #1172 from wejendorp/develop

Fixes component.json generator

11 years agoMerge pull request #1177 from icambron/language-test-module-check
Iskren Ivov Chernev [Sun, 13 Oct 2013 08:37:55 +0000 (01:37 -0700)] 
Merge pull request #1177 from icambron/language-test-module-check

repairing language tests

11 years agorepairing language tests 1177/head
Isaac Cambron [Wed, 9 Oct 2013 16:26:19 +0000 (12:26 -0400)] 
repairing language tests

11 years agoAdded changelog in readme for 2.3.1
Iskren Chernev [Wed, 9 Oct 2013 02:57:54 +0000 (19:57 -0700)] 
Added changelog in readme for 2.3.1

11 years agoBumping version to 2.3.1 2.3.1
Iskren Chernev [Wed, 9 Oct 2013 02:37:08 +0000 (06:37 +0400)] 
Bumping version to 2.3.1

11 years agoMerge pull request #1171 from icambron/month-zero
Iskren Ivov Chernev [Wed, 9 Oct 2013 02:33:27 +0000 (19:33 -0700)] 
Merge pull request #1171 from icambron/month-zero

fix zero index for months() and weekdays()

11 years agoFix list in component config.scripts 1172/head
Jacob Wejendorp [Tue, 8 Oct 2013 22:32:37 +0000 (00:32 +0200)] 
Fix list in component config.scripts

11 years agoFixes component.json generator
Jacob Wejendorp [Tue, 8 Oct 2013 13:04:36 +0000 (15:04 +0200)] 
Fixes component.json generator

11 years agofix zero index for months() and weekdays() 1171/head
Isaac Cambron [Tue, 8 Oct 2013 03:53:01 +0000 (23:53 -0400)] 
fix zero index for months() and weekdays()

11 years agoMerge pull request #1169 from rfb/develop
Isaac Cambron [Mon, 7 Oct 2013 23:20:12 +0000 (16:20 -0700)] 
Merge pull request #1169 from rfb/develop

Trailing comma

11 years agoTrailing comma 1169/head
Ryan Barber [Mon, 7 Oct 2013 21:16:08 +0000 (14:16 -0700)] 
Trailing comma

11 years agoBumped version to 2.3.0 2.3.0
Iskren Chernev [Mon, 7 Oct 2013 08:28:20 +0000 (12:28 +0400)] 
Bumped version to 2.3.0

11 years agoMerge pull request #1141 from icambron/feature/parse-weeks
Iskren Ivov Chernev [Sat, 5 Oct 2013 23:10:17 +0000 (16:10 -0700)] 
Merge pull request #1141 from icambron/feature/parse-weeks

parsing weeks

11 years agomaking things clearer 1141/head
Isaac Cambron [Sat, 5 Oct 2013 19:52:07 +0000 (15:52 -0400)] 
making things clearer

11 years agoMerge pull request #1164 from icambron/feature/simpler-scoring
Iskren Ivov Chernev [Sat, 5 Oct 2013 12:57:49 +0000 (05:57 -0700)] 
Merge pull request #1164 from icambron/feature/simpler-scoring

bulletproofing array of formats

11 years agoforgot to run grunt
Isaac Cambron [Sat, 5 Oct 2013 03:45:13 +0000 (23:45 -0400)] 
forgot to run grunt

11 years agorethinking d vs e
Isaac Cambron [Sat, 5 Oct 2013 00:28:17 +0000 (20:28 -0400)] 
rethinking d vs e

11 years agosatisfying grunt 1164/head
Isaac Cambron [Fri, 4 Oct 2013 21:51:47 +0000 (17:51 -0400)] 
satisfying grunt

11 years agotest weekYear() instead of year()
Isaac Cambron [Fri, 4 Oct 2013 20:47:15 +0000 (16:47 -0400)] 
test weekYear() instead of year()

11 years agoaddress @ichernev concerns
Isaac Cambron [Fri, 4 Oct 2013 20:44:17 +0000 (16:44 -0400)] 
address @ichernev concerns

11 years agobulletproofing array of formats
Isaac Cambron [Fri, 4 Oct 2013 17:28:30 +0000 (13:28 -0400)] 
bulletproofing array of formats

11 years agoremoving unused variable
Isaac Cambron [Fri, 4 Oct 2013 09:21:59 +0000 (05:21 -0400)] 
removing unused variable

11 years agofixing a possible bug with the current week year, and also a touch of cleanup
Isaac Cambron [Fri, 4 Oct 2013 09:19:34 +0000 (05:19 -0400)] 
fixing a possible bug with the current week year, and also a touch of cleanup

11 years agofixing indentation
Isaac Cambron [Fri, 4 Oct 2013 09:08:00 +0000 (05:08 -0400)] 
fixing indentation

11 years agomake the iso parser work with the week and ordinal formats
Isaac Cambron [Fri, 4 Oct 2013 09:03:33 +0000 (05:03 -0400)] 
make the iso parser work with the week and ordinal formats

11 years agorevamping week and weekday parsing
Isaac Cambron [Fri, 4 Oct 2013 07:32:58 +0000 (03:32 -0400)] 
revamping week and weekday parsing

11 years agoMerge branch 'languages/en-au' into develop
Iskren Chernev [Thu, 3 Oct 2013 18:56:33 +0000 (11:56 -0700)] 
Merge branch 'languages/en-au' into develop

11 years agoAdded en-au tests, fixed en-au export logic
Iskren Chernev [Thu, 3 Oct 2013 18:52:39 +0000 (11:52 -0700)] 
Added en-au tests, fixed en-au export logic

11 years agoen-au locale
Jared Morse [Tue, 24 Sep 2013 01:54:19 +0000 (18:54 -0700)] 
en-au locale

11 years agoMerge pull request #1158 from icambron/fix-format-newlines
Iskren Ivov Chernev [Thu, 3 Oct 2013 18:32:22 +0000 (11:32 -0700)] 
Merge pull request #1158 from icambron/fix-format-newlines

Allow non-formatting tokens to include newlines

11 years agoMerge branch 'bugfix/fix-list-iteration' into develop
Iskren Chernev [Thu, 3 Oct 2013 18:28:31 +0000 (11:28 -0700)] 
Merge branch 'bugfix/fix-list-iteration' into develop

11 years agoUse traditional for to loop through lists array
Iskren Chernev [Thu, 3 Oct 2013 18:28:16 +0000 (11:28 -0700)] 
Use traditional for to loop through lists array

11 years agoMerge remote-tracking branch 'icambron/feature/language-chooser' into develop
Iskren Chernev [Thu, 3 Oct 2013 18:20:26 +0000 (11:20 -0700)] 
Merge remote-tracking branch 'icambron/feature/language-chooser' into develop

Conflicts:
moment.js

11 years agoMerge pull request #1140 from icambron/feature/invalid-moments
Iskren Ivov Chernev [Thu, 3 Oct 2013 18:02:26 +0000 (11:02 -0700)] 
Merge pull request #1140 from icambron/feature/invalid-moments

Invalid moment rework

11 years agoattempt to address @ichernev's concerns 1140/head
Isaac Cambron [Thu, 3 Oct 2013 05:54:10 +0000 (01:54 -0400)] 
attempt to address @ichernev's concerns

11 years agoremoved trailing comma in object literal 1159/head
humbletim [Thu, 3 Oct 2013 00:05:55 +0000 (20:05 -0400)] 
removed trailing comma in object literal

11 years agomerging develop
Isaac Cambron [Wed, 2 Oct 2013 22:33:35 +0000 (18:33 -0400)] 
merging develop

11 years agoadding missing file
Isaac Cambron [Wed, 2 Oct 2013 22:26:35 +0000 (18:26 -0400)] 
adding missing file

11 years agofixes for review
Isaac Cambron [Wed, 2 Oct 2013 22:25:52 +0000 (18:25 -0400)] 
fixes for review

11 years agomerging from develop 1142/head
Isaac Cambron [Wed, 2 Oct 2013 21:31:22 +0000 (17:31 -0400)] 
merging from develop

11 years agoadded some comments
Isaac Cambron [Wed, 2 Oct 2013 21:29:24 +0000 (17:29 -0400)] 
added some comments

11 years agoadded hasOwnProperty check to lists enumeration
humbletim [Wed, 2 Oct 2013 18:00:54 +0000 (14:00 -0400)] 
added hasOwnProperty check to lists enumeration

11 years agoAllow non-formatting tokens to include newlines. Fixes #1151 1158/head
Isaac Cambron [Wed, 2 Oct 2013 15:19:31 +0000 (11:19 -0400)] 
Allow non-formatting tokens to include newlines. Fixes #1151

11 years agoMerge pull request #1157 from ichernev/bugfix/bg-lt
Isaac Cambron [Wed, 2 Oct 2013 09:24:13 +0000 (02:24 -0700)] 
Merge pull request #1157 from ichernev/bugfix/bg-lt

Changed bulgarian time format to 24h

11 years agoChanged bulgarian time format to 24h 1157/head
Iskren Chernev [Wed, 2 Oct 2013 09:16:40 +0000 (13:16 +0400)] 
Changed bulgarian time format to 24h

As requested by #1148

11 years agoForgot to add moment.js changes related to 48c742c
Iskren Chernev [Wed, 2 Oct 2013 08:59:09 +0000 (12:59 +0400)] 
Forgot to add moment.js changes related to 48c742c

11 years agoMerge branch 'accept-iso-duration-take2' into develop
Iskren Chernev [Wed, 2 Oct 2013 07:22:39 +0000 (00:22 -0700)] 
Merge branch 'accept-iso-duration-take2' into develop

Conflicts:
moment.js

11 years agoSimplified iso duration regex and removed overkill invalid checking logic
Iskren Chernev [Wed, 2 Oct 2013 07:18:04 +0000 (00:18 -0700)] 
Simplified iso duration regex and removed overkill invalid checking logic

11 years agoMerge pull request #1149 from icambron/fixup-bosnian
Isaac Cambron [Mon, 30 Sep 2013 23:13:11 +0000 (16:13 -0700)] 
Merge pull request #1149 from icambron/fixup-bosnian

make bosnian consistent with change to language boilerplate

11 years agomake bosnian consistent with change to language boilerplate 1149/head
Isaac Cambron [Mon, 30 Sep 2013 23:12:07 +0000 (19:12 -0400)] 
make bosnian consistent with change to language boilerplate