Skip to content

Commit

Permalink
Merge pull request #1 from bflood-agi/bflood-agi-JulianDatefromIso8601
Browse files Browse the repository at this point in the history
JulianDate creation from ISO8601 hours-minutes strings
  • Loading branch information
bflood-agi committed Nov 17, 2015
2 parents 7caa07a + 874cc12 commit 692d111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/JulianDate.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ define([
tokens = time.match(matchHoursMinutes);
if (tokens !== null) {
dashCount = time.split(':').length - 1;
if (dashCount > 0 && dashCount !== 1) {
if (dashCount > 2) {
throw new DeveloperError(iso8601ErrorMessage);
}

Expand Down

0 comments on commit 692d111

Please sign in to comment.