Skip to content

Commit

Permalink
2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminghe committed Dec 23, 2014
1 parent 52dfbda commit a1829f2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions lib/gregorian-calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ GregorianCalendar.prototype = {
*/
computeTime: function () {
if (!this.isSet(YEAR)) {
throw new Error('year must be set for KISSY GregorianCalendar');
throw new Error('year must be set for GregorianCalendar');
}

var fields = this.fields;
Expand Down Expand Up @@ -710,7 +710,7 @@ GregorianCalendar.prototype = {
this.fields[YEAR + i] = arguments[i];
}
} else {
throw new Error('illegal arguments for KISSY GregorianCalendar set');
throw new Error('illegal arguments for GregorianCalendar set');
}
this.time = undefined;
},
Expand Down Expand Up @@ -1345,4 +1345,4 @@ module.exports = GregorianCalendar;
- day saving time
- i18n
- julian calendar
*/
*/
4 changes: 2 additions & 2 deletions lib/locale/en-us.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* locale info for KISSY Date
* en-us locale
* @ignore
* @author yiminghe@gmail.com
*/
Expand All @@ -22,4 +22,4 @@ module.exports = {
datePatterns: ['EEEE, MMMM d, yyyy', 'MMMM d, yyyy', 'MMM d, yyyy', 'M/d/yy'],
timePatterns: ['h:mm:ss a \'GMT\'Z', 'h:mm:ss a', 'h:mm:ss a', 'h:mm a'],
dateTimePattern: '{date} {time}'
};
};
4 changes: 2 additions & 2 deletions lib/locale/zh-cn.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* locale info for KISSY Date
* zh-cn locale
* @ignore
* @author yiminghe@gmail.com
*/
Expand All @@ -24,4 +24,4 @@ module.exports = {
datePatterns: ["yyyy'年'M'月'd'日' EEEE", "yyyy'年'M'月'd'日'", "yyyy-M-d", "yy-M-d"],
timePatterns: ["ahh'时'mm'分'ss'秒' 'GMT'Z", "ahh'时'mm'分'ss'秒'", "H:mm:ss", "ah:mm"],
dateTimePattern: '{date} {time}'
};
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gregorian-calendar",
"version": "2.0.3",
"version": "2.0.4",
"author": "yiminghe <yiminghe@gmail.com>",
"engines": {
"node": "~0.11"
Expand Down

0 comments on commit a1829f2

Please sign in to comment.