Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Commit

Permalink
Merge pull request #18 from dnasir/dev
Browse files Browse the repository at this point in the history
* Updated distribution files
  • Loading branch information
dnasir committed Jun 24, 2014
2 parents ef1509f + 7052512 commit 8c21496
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions dist/angular-dateparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ angular.module("dateParser", []).factory("dateParserHelpers", [ function() {
} else {
if (val[i_val + 3] === ":") {
var tzStr = val.substring(i_val, i_val + 6);
z = parseInt(tzStr.substr(0, 3)) * 60 + parseInt(tzStr.substr(4, 2));
z = parseInt(tzStr.substr(0, 3), 10) * 60 + parseInt(tzStr.substr(4, 2), 10);
i_val += 6;
} else {
var tzStr = val.substring(i_val, i_val + 5);
z = parseInt(tzStr.substr(0, 3)) * 60 + parseInt(tzStr.substr(3, 2));
z = parseInt(tzStr.substr(0, 3), 10) * 60 + parseInt(tzStr.substr(3, 2), 10);
i_val += 5;
}
}
Expand All @@ -197,13 +197,13 @@ angular.module("dateParser", []).factory("dateParserHelpers", [ function() {
if (i_val != val.length) {
throw "Pattern value mismatch";
}
year = parseInt(year);
month = parseInt(month);
date = parseInt(date);
hh = parseInt(hh);
mm = parseInt(mm);
ss = parseInt(ss);
sss = parseInt(sss);
year = parseInt(year, 10);
month = parseInt(month, 10);
date = parseInt(date, 10);
hh = parseInt(hh, 10);
mm = parseInt(mm, 10);
ss = parseInt(ss, 10);
sss = parseInt(sss, 10);
if (month == 2) {
if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
if (date > 29) {
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-dateparser.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/angular-dateparser.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8c21496

Please sign in to comment.