]>
git.ipfire.org Git - thirdparty/moment.git/log
humbletim [Thu, 3 Oct 2013 00:05:55 +0000 (20:05 -0400)]
removed trailing comma in object literal
humbletim [Wed, 2 Oct 2013 18:00:54 +0000 (14:00 -0400)]
added hasOwnProperty check to lists enumeration
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
Iskren Chernev [Wed, 2 Oct 2013 09:16:40 +0000 (13:16 +0400)]
Changed bulgarian time format to 24h
As requested by #1148
Iskren Chernev [Wed, 2 Oct 2013 08:59:09 +0000 (12:59 +0400)]
Forgot to add moment.js changes related to
48c742c
Iskren Chernev [Wed, 2 Oct 2013 07:22:39 +0000 (00:22 -0700)]
Merge branch 'accept-iso-duration-take2' into develop
Conflicts:
moment.js
Iskren Chernev [Wed, 2 Oct 2013 07:18:04 +0000 (00:18 -0700)]
Simplified iso duration regex and removed overkill invalid checking logic
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
Isaac Cambron [Mon, 30 Sep 2013 23:12:07 +0000 (19:12 -0400)]
make bosnian consistent with change to language boilerplate
Isaac Cambron [Mon, 30 Sep 2013 23:06:08 +0000 (16:06 -0700)]
Merge pull request #1144 from frontyard/develop
Added bosnian (bs) translation.
Isaac Cambron [Mon, 30 Sep 2013 16:48:52 +0000 (12:48 -0400)]
Use British English tests as the translation testing example
Isaac Cambron [Mon, 30 Sep 2013 16:47:23 +0000 (09:47 -0700)]
Merge pull request #1147 from mariusGundersen/feature/exportLang
Feature/export lang
Marius Gundersen [Mon, 30 Sep 2013 12:52:59 +0000 (14:52 +0200)]
Added the required return values to all the language files
Marius Gundersen [Mon, 30 Sep 2013 12:38:20 +0000 (14:38 +0200)]
Added test for module return value
Marius Gundersen [Mon, 30 Sep 2013 12:10:54 +0000 (14:10 +0200)]
return the name of the language which was registered
Nedim Cholich [Mon, 30 Sep 2013 10:59:26 +0000 (12:59 +0200)]
Missed one place in test.
Nedim Cholich [Mon, 30 Sep 2013 10:45:50 +0000 (12:45 +0200)]
Added test for bosnian (bs).
Nedim Cholich [Sun, 29 Sep 2013 14:58:48 +0000 (16:58 +0200)]
Added bosnian (bs) translation.
Isaac Cambron [Fri, 27 Sep 2013 14:33:01 +0000 (07:33 -0700)]
Merge pull request #1139 from ichernev/feature/unlocalize-to-string
toString always prints date in English
Iskren Chernev [Thu, 26 Sep 2013 17:36:41 +0000 (10:36 -0700)]
toString always prints date in English
Isaac Cambron [Thu, 26 Sep 2013 11:52:01 +0000 (04:52 -0700)]
Merge pull request #1137 from bakatamas/develop
Updates to hu.js
Isaac Cambron [Thu, 26 Sep 2013 08:42:37 +0000 (01:42 -0700)]
Merge pull request #1138 from ichernev/bugfix/iis-compatible-filenames
Removed + from bundled file names
Iskren Chernev [Thu, 26 Sep 2013 08:32:02 +0000 (01:32 -0700)]
Removed + from bundled file names
IIS has issues with files containing +. fixes #1118
Iskren Chernev [Thu, 26 Sep 2013 08:25:46 +0000 (01:25 -0700)]
Use UMD in lang/uz.js
bakatamas [Thu, 26 Sep 2013 07:55:30 +0000 (09:55 +0200)]
Update hu.js
Iskren Chernev [Thu, 26 Sep 2013 07:47:02 +0000 (00:47 -0700)]
Merge branch 'icambron/feature/invalid-moments' into develop
bakatamas [Thu, 26 Sep 2013 07:46:21 +0000 (09:46 +0200)]
Update hu.js
Isaac Cambron [Tue, 17 Sep 2013 01:31:36 +0000 (21:31 -0400)]
using NaN instead of 0
Isaac Cambron [Mon, 16 Sep 2013 03:51:46 +0000 (23:51 -0400)]
fixing jshint error from rebase
Isaac Cambron [Sun, 15 Sep 2013 23:22:03 +0000 (19:22 -0400)]
added ability to create invalid moments
bakatamas [Thu, 26 Sep 2013 07:44:43 +0000 (09:44 +0200)]
Update hu.js
Isaac Cambron [Wed, 25 Sep 2013 06:57:36 +0000 (23:57 -0700)]
Merge pull request #1129 from muminoff/develop
Added support for uzbek language
muminoff [Wed, 25 Sep 2013 06:47:25 +0000 (15:47 +0900)]
Added uzbek language and tested
Isaac Cambron [Tue, 24 Sep 2013 18:51:31 +0000 (11:51 -0700)]
Merge pull request #1121 from mmozuras/feature/convert_lt_and_vn_to_umd
Feature/convert lt and vn to UMD
Isaac Cambron [Tue, 24 Sep 2013 04:52:36 +0000 (21:52 -0700)]
Merge pull request #1123 from adambiggs/umd-bug-fix
Bug fix for recent changes in moment.utc()
Adam Biggs [Fri, 20 Sep 2013 21:26:50 +0000 (14:26 -0700)]
Don't call .utc() if makeMoment() returns null
Adam Biggs [Fri, 20 Sep 2013 21:25:55 +0000 (14:25 -0700)]
Failing tests for moment.utc() returning null
Mindaugas Mozūras [Fri, 20 Sep 2013 08:39:48 +0000 (11:39 +0300)]
Convert lang/vn.js to UMD
Mindaugas Mozūras [Fri, 20 Sep 2013 08:39:32 +0000 (11:39 +0300)]
Convert lang/lt.js to UMD
Iskren Ivov Chernev [Wed, 18 Sep 2013 07:22:45 +0000 (00:22 -0700)]
Merge pull request #1115 from Xotic750/extendDontEnum
extend() now works on IE < 9
Isaac Cambron [Wed, 18 Sep 2013 00:44:03 +0000 (17:44 -0700)]
Merge pull request #1116 from Xotic750/DurationNormalization
Improve Duration function by normalizing the input object.
Xotic750 [Wed, 18 Sep 2013 00:00:52 +0000 (02:00 +0200)]
Improve Duration function by normalizing the input object.
Created a new function (normalizeObjectUnits), this is now also used by dateFromObject
Fixed spacing or jshint
Fixed missing argument
Xotic750 [Tue, 17 Sep 2013 23:21:55 +0000 (01:21 +0200)]
Adjust indentation
Xotic750 [Tue, 17 Sep 2013 23:19:16 +0000 (01:19 +0200)]
Changed to the simpler workaround rather than full blown fix.
https://github.com/moment/moment/issues/1114#issuecomment-
24629678
Xotic750 [Tue, 17 Sep 2013 23:01:41 +0000 (01:01 +0200)]
Possible fix: Using extend() with Moment's prototypes breaks IE < 9
https://github.com/moment/moment/issues/1114
Iskren Chernev [Tue, 17 Sep 2013 07:51:27 +0000 (00:51 -0700)]
Parsing with array and strict parsing now play nicely
Iskren Chernev [Tue, 17 Sep 2013 07:38:11 +0000 (00:38 -0700)]
Removing duplicate regexpEscape function
Iskren Ivov Chernev [Tue, 17 Sep 2013 07:24:11 +0000 (00:24 -0700)]
Merge pull request #1097 from icambron/feature/list-months
List months and weekdays
Iskren Ivov Chernev [Tue, 17 Sep 2013 07:22:18 +0000 (00:22 -0700)]
Merge pull request #913 from ichernev/features/better-parsing
Added strict parsing.
Use with moment(date, format, [lang], true), or moment.utc(date, format, [lang], true).
Iskren Chernev [Tue, 17 Sep 2013 07:14:19 +0000 (00:14 -0700)]
Make jshint happy
Iskren Chernev [Mon, 16 Sep 2013 11:09:01 +0000 (04:09 -0700)]
Added more tests
Iskren Chernev [Mon, 16 Sep 2013 10:50:15 +0000 (03:50 -0700)]
Addressed @icambron remarks
Iskren Chernev [Sun, 14 Jul 2013 06:39:33 +0000 (23:39 -0700)]
Removed comments and added tests
Iskren Chernev [Mon, 24 Jun 2013 17:15:45 +0000 (10:15 -0700)]
Strict parsing now works. Add tests!
Iskren Chernev [Sat, 27 Apr 2013 06:54:15 +0000 (23:54 -0700)]
Added strict parsing
Isaac Cambron [Tue, 17 Sep 2013 06:22:32 +0000 (23:22 -0700)]
Merge pull request #1110 from arshaw/hotfix/2.2.1
UTC-mode .weekday() is incorrect
Adam Shaw [Tue, 17 Sep 2013 06:10:31 +0000 (23:10 -0700)]
simplify weekday-utc test
Adam Shaw [Tue, 17 Sep 2013 05:25:30 +0000 (22:25 -0700)]
test for utc-mode .weekday() being incorrect
Adam Shaw [Tue, 17 Sep 2013 05:24:57 +0000 (22:24 -0700)]
fix for utc-mode .weekday() being incorrect
Isaac Cambron [Tue, 17 Sep 2013 04:04:47 +0000 (00:04 -0400)]
fixing default format
Iskren Ivov Chernev [Tue, 17 Sep 2013 03:22:10 +0000 (20:22 -0700)]
Merge pull request #1106 from icambron/feature/parse-zone
adding parseZone()
Isaac Cambron [Tue, 17 Sep 2013 03:13:24 +0000 (23:13 -0400)]
adding parseZone()
Isaac Cambron [Tue, 17 Sep 2013 02:37:26 +0000 (19:37 -0700)]
Merge pull request #1099 from ichernev/feature/add-component-json-grunt-task
Added component grunt task to fill component.json with lang files
Isaac Cambron [Tue, 17 Sep 2013 01:58:58 +0000 (21:58 -0400)]
updating to develop
Isaac Cambron [Tue, 17 Sep 2013 01:52:25 +0000 (21:52 -0400)]
allow an index argument
Iskren Ivov Chernev [Mon, 16 Sep 2013 19:14:07 +0000 (12:14 -0700)]
Merge pull request #1102 from Xotic750/expandFormat
Improved readability of expandFormat function
Iskren Ivov Chernev [Mon, 16 Sep 2013 19:11:24 +0000 (12:11 -0700)]
Merge pull request #1103 from Xotic750/dateFromObject
Improve dateFromObject to utilise the normalizedUnits method.
Iskren Ivov Chernev [Mon, 16 Sep 2013 19:10:14 +0000 (12:10 -0700)]
Merge pull request #1104 from Xotic750/clarityTildeTilde
Readability of TildeTilde
Xotic750 [Mon, 16 Sep 2013 17:03:13 +0000 (19:03 +0200)]
Changed naming to toInt any aligned code with latest pull
Xotic750 [Mon, 16 Sep 2013 16:07:00 +0000 (18:07 +0200)]
Readability of TildeTilde
Xotic750 [Mon, 16 Sep 2013 16:04:30 +0000 (18:04 +0200)]
Improved readability of expandFormat function
Xotic750 [Mon, 16 Sep 2013 16:02:34 +0000 (18:02 +0200)]
Improve dateFromObject to utilise the normalizedUnits method.
User object will now handle any acceptable capitalisation, aliasing or pluralisation.
Iskren Ivov Chernev [Mon, 16 Sep 2013 10:41:09 +0000 (03:41 -0700)]
Merge pull request #1094 from Timrael/more_precise_parsing
More precise parsing with an array of formats
Iskren Chernev [Mon, 16 Sep 2013 10:38:08 +0000 (03:38 -0700)]
Added component grunt task to fill component.json with lang files
Iskren Ivov Chernev [Mon, 16 Sep 2013 10:19:17 +0000 (03:19 -0700)]
Merge pull request #1091 from icambron/feature/fix-node-repl
Fix moment(new Date()) in Node REPL
Iskren Ivov Chernev [Mon, 16 Sep 2013 10:14:05 +0000 (03:14 -0700)]
Merge pull request #1056 from ichernev/bugfix/fix-chinese-ampm
Fixed wrong Chinese meridiem time
Iskren Chernev [Mon, 9 Sep 2013 00:03:42 +0000 (17:03 -0700)]
Chinese noon ends 12:30
Iskren Chernev [Sun, 8 Sep 2013 23:27:40 +0000 (16:27 -0700)]
Fixed wrong Chinese meridiem time
Better implementation for #865
Iskren Ivov Chernev [Mon, 16 Sep 2013 10:11:54 +0000 (03:11 -0700)]
Merge pull request #1089 from Xotic750/feature/noGlobal
Allow AMD module loader to set noGlobal in config to prevent moment poll...
Iskren Ivov Chernev [Mon, 16 Sep 2013 09:45:42 +0000 (02:45 -0700)]
Merge pull request #1092 from icambron/feature/fix-unpadded-datetimes
make iso parsing a bit stricter
Isaac Cambron [Mon, 16 Sep 2013 03:14:11 +0000 (23:14 -0400)]
simplifying
Isaac Cambron [Mon, 16 Sep 2013 02:54:45 +0000 (19:54 -0700)]
Merge pull request #1093 from Oire/feature/nl-decapitalization
Decapitalizing yesterday/today/tomorrow in Dutch, fixes #919
Isaac Cambron [Sun, 15 Sep 2013 23:23:40 +0000 (19:23 -0400)]
using setup/teardown in the tests
Isaac Cambron [Sun, 15 Sep 2013 21:26:16 +0000 (17:26 -0400)]
allow listing of months and weekdays
Xotic750 [Sun, 15 Sep 2013 14:01:56 +0000 (16:01 +0200)]
Removed the cached Math variables that should have been in a different branch
Menelion Elensúle (Andre Polykanine) [Sun, 15 Sep 2013 11:31:30 +0000 (14:31 +0300)]
Decapitalizing yesterday/today/tomorrow in Dutch, fixes #919
Timur Kozmenko [Sun, 15 Sep 2013 11:10:04 +0000 (18:10 +0700)]
feat(#getParseRegexForToken): escape special RegExp characters to increase presicion of penalty calculation
Timur Kozmenko [Sun, 15 Sep 2013 09:59:28 +0000 (16:59 +0700)]
feat(parsing string): all unparsed substrings have influence on format penalty
Isaac Cambron [Sun, 15 Sep 2013 08:45:24 +0000 (04:45 -0400)]
make iso parsing a bit stricter
Isaac Cambron [Sun, 15 Sep 2013 08:06:30 +0000 (04:06 -0400)]
be smarter about deciding whether something is a date or not. fixes #1084
Iskren Ivov Chernev [Sun, 15 Sep 2013 04:36:36 +0000 (21:36 -0700)]
Merge pull request #1059 from ianwremmel/develop
Support constructing durations from timestamps that do not include seconds
Iskren Ivov Chernev [Sun, 15 Sep 2013 03:56:41 +0000 (20:56 -0700)]
Merge pull request #1086 from Xotic750/hotfix/unix-timestamp
Fix isValid for Unix timestamp parser
Xotic750 [Sun, 15 Sep 2013 00:13:48 +0000 (02:13 +0200)]
Allow AMD module loader to set noGlobal in config to prevent moment polluting the global space.
Option has to be set ny the user otherwise everything loads as previously.
Loader would now look like this to choose noGlobal
/*jslint maxerr: 50, indent: 4, browser: true */
(function (global, undef) {
"use strict";
var projectString = "myProject",
momentCDN = "//cdnjs.cloudflare.com/ajax/libs/moment.js/2.1.0/moment.min",
momentString = "moment";
(function (name, definition) {
if (global.module !== undef && global.module.exports) {
global.module.exports = definition(global.require(momentCDN));
} else if (typeof global.define === "function" && global.define.amd) {
var projectPaths = {};
projectPaths[momentString] = momentCDN;
global.require.config({
paths: projectPaths
});
global.define(name, [momentString], definition);
} else {
global[name] = definition(global.moment);
}
}(projectString, function (moment) {
delete global[momentString];
moment.fn.newFunction = function () {
// code
};
function MyFunction() {
// code
}
return {
"MyFunction": MyFunction,
"momentPrivate": moment
};
}));
}(this));
requirejs(["myProject"], function (myProject) {
"use strict";
console.log("Private", myProject.momentPrivate);
console.log("Global", window["moment"]);
});
Xotic750 [Sun, 15 Sep 2013 00:01:27 +0000 (02:01 +0200)]
Wrap empty string test in try catch
Xotic750 [Sat, 14 Sep 2013 23:56:38 +0000 (01:56 +0200)]
Removed comments that jshint failed on
Xotic750 [Sat, 14 Sep 2013 23:53:50 +0000 (01:53 +0200)]
jshint fixes
Xotic750 [Sat, 14 Sep 2013 23:50:29 +0000 (01:50 +0200)]
Add unit tests
Isaac Cambron [Sat, 14 Sep 2013 23:35:00 +0000 (16:35 -0700)]
Merge pull request #1087 from Xotic750/feature/normaliseUnits
Added feature to expose normalizeUnits
Isaac Cambron [Sat, 14 Sep 2013 23:08:23 +0000 (16:08 -0700)]
Merge pull request #974 from allaud/develop
Russian months recognition fixed
Xotic750 [Sat, 14 Sep 2013 23:08:20 +0000 (01:08 +0200)]
Unit tests