Skip to content

Commit

Permalink
fixed the dateFormat bug and edit the License text
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanye committed Dec 23, 2014
1 parent 86dbed9 commit b52598c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(The MIT License)

Copyright (c) 2012-2014 Netease, Inc. and other pomelo contributors
Copyright (c) 2014 Xuanye and other contributors

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ xgcalendar

(The MIT License)

Copyright (c) 2012-2014 NetEase, Inc. and other contributors
Copyright (c) 2014 Xuanye and other contributors

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ to complete

(The MIT License)

Copyright (c) 2012-2014 NetEase, Inc. and other contributors
Copyright (c) 2014 Xuanye and other contributors

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
2 changes: 1 addition & 1 deletion code/js/plugin/xgcalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"w": "0123456".indexOf(this.getDay()),
"t":this.getHours()<12?i18n.xgcalendar.dateformat.AM:i18n.xgcalendar.dateformat.PM,
"W": __WDAY[this.getDay()],
"L": __MonthName[this.getMonth()] //non-standard
"\\bL\\b": __MonthName[this.getMonth()] //non-standard
};
if (/(y+)/.test(format)) {
format = format.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
Expand Down
2 changes: 1 addition & 1 deletion example/nodejs/static/js/plugin/xgcalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"w": "0123456".indexOf(this.getDay()),
"t":this.getHours()<12?i18n.xgcalendar.dateformat.AM:i18n.xgcalendar.dateformat.PM,
"W": __WDAY[this.getDay()],
"L": __MonthName[this.getMonth()] //non-standard
"\\bL\\b": __MonthName[this.getMonth()] //non-standard
};
if (/(y+)/.test(format)) {
format = format.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
Expand Down
2 changes: 1 addition & 1 deletion example/php-newstyle/static/js/plugin/xgcalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"w": "0123456".indexOf(this.getDay()),
"t":this.getHours()<12?i18n.xgcalendar.dateformat.AM:i18n.xgcalendar.dateformat.PM,
"W": __WDAY[this.getDay()],
"L": __MonthName[this.getMonth()] //non-standard
"\\bL\\b": __MonthName[this.getMonth()] //non-standard
};
if (/(y+)/.test(format)) {
format = format.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
Expand Down
2 changes: 1 addition & 1 deletion example/php/static/javascripts/Plugins/xgcalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"w": "0123456".indexOf(this.getDay()),
"t":this.getHours()<12?i18n.xgcalendar.dateformat.AM:i18n.xgcalendar.dateformat.PM,
"W": __WDAY[this.getDay()],
"L": __MonthName[this.getMonth()] //non-standard
"\\bL\\b": __MonthName[this.getMonth()] //non-standard
};
if (/(y+)/.test(format)) {
format = format.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
Expand Down

0 comments on commit b52598c

Please sign in to comment.