Skip to content

Commit

Permalink
Fix date format so that it works in safari / firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
caleybrock committed Jul 9, 2018
1 parent 31588a0 commit dc2eab0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ describe('sectionAssessmentsRedux', () => {
multi_correct: 4,
multi_count: 10,
submitted: true,
timestamp: "2018-06-12 04:53:36 UTC",
timestamp: "2018-06-26T21:05:02.000Z",
url: "code.org",
}
}
Expand All @@ -974,7 +974,7 @@ describe('sectionAssessmentsRedux', () => {
numMultipleChoice: 10,
numMultipleChoiceCorrect: 4,
isSubmitted: true,
submissionTimeStamp: "March 3, 5877521 at -8:-31:-23 GMT-5:17:32",
submissionTimeStamp: "June 26, 2018 at 5:05:02 PM EDT",
url: "code.org",
},
{
Expand Down
2 changes: 1 addition & 1 deletion dashboard/app/controllers/api/v1/assessments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def section_responses
end

submitted = last_attempt[:submitted]
timestamp = last_attempt[:updated_at].to_formatted_s
timestamp = last_attempt[:updated_at]

responses_by_level_group[level_group.id] = {
stage: script_level.stage.localized_title,
Expand Down

0 comments on commit dc2eab0

Please sign in to comment.