Permalink
Browse files

Add description with modification date

  • Loading branch information...
1 parent 2e3d6df commit 955048663a3b87fc4d87644de9acb004f60651ba @scy committed Jul 12, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 coco-icalres.js
View
@@ -12,6 +12,8 @@ var uidUser = user.replace(/[^a-zA-Z]/g, '');
var days = {};
var events = [];
+var started = '' + (new Date());
+
db.each('SELECT * FROM days WHERE username = (?)', user, function (err, row) {
if (err) {
console.log(err);
@@ -62,6 +64,7 @@ db.each('SELECT * FROM days WHERE username = (?)', user, function (err, row) {
out += 'BEGIN:VEVENT\n';
out += 'UID:coco-icalres-' + uidUser + '-' + ev.dt + '@cocomore.com\n';
out += 'SUMMARY:' + ev.summary + '\n';
+ out += 'DESCRIPTION:Updated ' + started + '\n';
out += 'DTSTART:' + ev.dt + '\n';
out += 'END:VEVENT\n';
});

0 comments on commit 9550486

Please sign in to comment.