aboutsummaryrefslogtreecommitdiff
path: root/node_simple.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_simple.js')
-rw-r--r--node_simple.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/node_simple.js b/node_simple.js
index eeaf5e5..0290519 100644
--- a/node_simple.js
+++ b/node_simple.js
@@ -364,6 +364,7 @@ exports.retrieve_userComments_history = function (username, callback) {
function doCall() {
callback(true, mylist);
+ console.log("IN NODE SIMPLE: " + mylist);
}
@@ -717,9 +718,10 @@ exports.get_exam_info_by_ID = function (exam_id, callback) {
* where <string> : err ? err_mssg : success_mssg
* */
exports.add_comment = function (sol_id, fields, serverCallback) {
+ var date = new Date();
var Data = {
text: fields[0],
- date: new Date(),
+ date: date.toString().slice(0, 24),
by: fields[1]
};