Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
c3-closed
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Evgeny
c3-closed
Commits
5c443a6d
Commit
5c443a6d
authored
Apr 16, 2015
by
lbortoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for issue #1054
This is the fix for the issue "Problem parsing date on parseDate function when date is a string". The validation when 'date' is a number was wrong.
parent
e83d0e78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
core.js
src/core.js
+1
-1
No files found.
src/core.js
View file @
5c443a6d
...
...
@@ -983,7 +983,7 @@ c3_chart_internal_fn.parseDate = function (date) {
parsedDate
=
date
;
}
else
if
(
typeof
date
===
'string'
)
{
parsedDate
=
$$
.
dataTimeFormat
(
$$
.
config
.
data_xFormat
).
parse
(
date
);
}
else
if
(
typeof
date
===
'number'
||
!
isNaN
(
date
))
{
}
else
if
(
typeof
date
===
'number'
&&
!
isNaN
(
date
))
{
parsedDate
=
new
Date
(
+
date
);
}
if
(
!
parsedDate
||
isNaN
(
+
parsedDate
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment