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
2dbf649b
Commit
2dbf649b
authored
Jul 15, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup: use resolved submission start/due dates; use UTC for submission start/due in template
parent
97a73124
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
openassessment/templates/openassessmentblock/edit/oa_edit.html
+5
-4
openassessment/xblock/studio_mixin.py
+0
-3
No files found.
openassessment/templates/openassessmentblock/edit/oa_edit.html
View file @
2dbf649b
{% load i18n %}
{% load tz %}
{% spaceless %}
<div
id=
"openassessment-editor"
class=
"editor-with-buttons editor-with-tabs"
>
<div
class=
"openassessment_editor_content_and_tabs"
>
...
...
@@ -39,7 +40,7 @@
type=
"text"
class=
"input setting-input"
id=
"openassessment_submission_start_date"
value=
"{{ submission_start|date:"
y-m-d
"
}}"
value=
"{{ submission_start|
utc|
date:"
y-m-d
"
}}"
>
</div>
<div
class=
"wrapper-comp-setting"
>
...
...
@@ -52,7 +53,7 @@
type=
"text"
class=
"input setting-input"
id=
"openassessment_submission_start_time"
value=
"{{ submission_start|date:"
H:i
"
}}"
value=
"{{ submission_start|
utc|
date:"
H:i
"
}}"
>
</div>
<p
class=
"setting-help"
>
{% trans "The date at which submissions will first be accepted." %}
</p>
...
...
@@ -68,7 +69,7 @@
type=
"text"
class=
"input setting-input"
id=
"openassessment_submission_due_date"
value=
"{{ submission_due|date:"
y-m-d
"
}}"
value=
"{{ submission_due|
utc|
date:"
y-m-d
"
}}"
>
</div>
<div
class=
"wrapper-comp-setting"
>
...
...
@@ -81,7 +82,7 @@
type=
"text"
class=
"input setting-input"
id=
"openassessment_submission_due_time"
value=
"{{ submission_due|date:"
H:i
"
}}"
value=
"{{ submission_due|
utc|
date:"
H:i
"
}}"
>
</div>
<p
class=
"setting-help"
>
{% trans "The date at which submissions will stop being accepted." %}
</p>
...
...
openassessment/xblock/studio_mixin.py
View file @
2dbf649b
...
...
@@ -93,9 +93,6 @@ class StudioMixin(object):
except
:
logger
.
exception
(
"An error occurred while serializing the XBlock"
)
submission_due
=
parse_date
(
self
.
submission_due
)
.
replace
(
tzinfo
=
pytz
.
utc
)
if
self
.
submission_due
else
''
submission_start
=
parse_date
(
self
.
submission_start
)
.
replace
(
tzinfo
=
pytz
.
utc
)
if
self
.
submission_start
else
''
# Every rubric requires one criterion. If there is no criteria
# configured for the XBlock, return one empty default criterion, with
# an empty default option.
...
...
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