Commit 003b19cf authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Save comment update dates as Date objects.

For some reason they were previously saved as strings.
parent 2d9e53ee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -145,7 +145,7 @@ exports.vote = function(req, res, comment) {
 */
exports.logUpdate = function(comment, author, action) {
    var up = {
        updatedAt: String(new Date()),
        updatedAt: new Date(),
        author: author
    };
    if (action) {