Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Commit

Permalink
Use native date format for comment date
Browse files Browse the repository at this point in the history
We'll have to set the date on the server eventually, to prevent abuse
  • Loading branch information
Stephan Balmer committed Jul 9, 2013
1 parent af5fd6b commit 170c4f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/views/courses/course.discussion.js
Expand Up @@ -2,6 +2,7 @@
Template.discussion.post = function() {
//get all first-level posts
var posts = CourseDiscussions.find(
{course_ID: Session.get('selected_course')},
{parent_ID: null},
{sort: {time_updated: -1, time_created: -1}}
);
Expand All @@ -25,8 +26,7 @@ Template.postDialog.showPostDialog = function () {

Template.writePostDialog.events({
'click input.add': function () {
var now = new Date();
var timestamp = now.getTime();
var timestamp = new Date();
var user = Meteor.userId();
var course = Session.get("selected_course");

Expand Down

0 comments on commit 170c4f6

Please sign in to comment.