This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
node-dogapi
mirror of
https://github.com/brettlangdon/node-dogapi.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
40
Wiki
Activity
Browse Source
Merge pull request
#5
from vijayparikh/FixTimeFormat
Fixed issue with date not being rounded to seconds on event add
pull/6/head
Brett Langdon
12 years ago
parent
d95cbfbc2b
77d5d2c4fa
commit
e5c83064ea
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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'
]
)
{
event
[
'date_happened'
]
=
(
new
Date
(
)
.
getTime
(
)
)
/
1000
;
event
[
'date_happened'
]
=
Math
.
round
(
(
new
Date
(
)
)
.
getTime
(
)
/
1000
)
;
}
if
(
event
[
'priority'
]
)
{
Write
Preview
Loading…
Cancel
Save