Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
Overview
Overview
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-ora2
Commits
136e68f9
Commit
136e68f9
authored
Nov 25, 2014
by
muzaffaryousaf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using ISO_8601 for date formatting instead of string.
TNL-58
parent
de130839
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
openassessment/xblock/static/js/openassessment-studio.min.js
+0
-0
openassessment/xblock/static/js/src/studio/oa_edit_fields.js
+2
-4
No files found.
openassessment/xblock/static/js/openassessment-studio.min.js
View file @
136e68f9
This diff is collapsed.
Click to expand it.
openassessment/xblock/static/js/src/studio/oa_edit_fields.js
View file @
136e68f9
...
@@ -235,10 +235,8 @@ OpenAssessment.DatetimeControl.prototype = {
...
@@ -235,10 +235,8 @@ OpenAssessment.DatetimeControl.prototype = {
//try: to catch the error thrown by parseDate if date is not in expected format.
//try: to catch the error thrown by parseDate if date is not in expected format.
try
{
try
{
var
parsedDate
=
$
.
datepicker
.
parseDate
(
"yy-mm-dd"
,
dateString
);
var
parsedDate
=
$
.
datepicker
.
parseDate
(
$
.
datepicker
.
ISO_8601
,
dateString
);
if
(
parsedDate
instanceof
Date
)
{
isDateValid
=
parsedDate
instanceof
Date
;
isDateValid
=
true
;
}
}
}
catch
(
err
)
{
catch
(
err
)
{
// do nothing.
// do nothing.
...
...
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