Browse Source

Fixed issue with date not being rounded to seconds on event add

pull/5/head
Vijay Parikh 12 years ago
parent
commit
77d5d2c4fa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/api/event.js

+ 1
- 1
lib/api/event.js View File

@ -136,7 +136,7 @@ event_api.prototype.add_event = function(event, callback){
} }
if(!event['date_happened']){ if(!event['date_happened']){
event['date_happened'] = (new Date().getTime()) / 1000;
event['date_happened'] = Math.round((new Date()).getTime() / 1000);
} }
if(event['priority']){ if(event['priority']){


Loading…
Cancel
Save