Skip to content
Browse files

support text dates if provided

  • Loading branch information...
1 parent 30d2527 commit da86de7181e7482865ce74cbcc2fb1abe33ae623 @tardate committed Jul 29, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.addtocal.js
View
4 jquery.addtocal.js
@@ -35,9 +35,9 @@
var
title = ( eventDetails.title ? encodeURIComponent( eventDetails.title ) : '' ),
start = ( typeof eventDetails.start.toRFC3339UTCString == 'function' ?
- eventDetails.start.toRFC3339UTCString(true,true) : ''),
+ eventDetails.start.toRFC3339UTCString(true,true) : eventDetails.start ),
end = ( typeof eventDetails.end.toRFC3339UTCString == 'function' ?
- eventDetails.end.toRFC3339UTCString(true,true) : ''),
+ eventDetails.end.toRFC3339UTCString(true,true) : eventDetails.end ),
location = ( eventDetails.location ? encodeURIComponent( eventDetails.location ) : '' ),
details = ( eventDetails.details ? encodeURIComponent( eventDetails.details ) : '' ),
url = ( eventDetails.url ? encodeURIComponent( eventDetails.url ) : '' );

0 comments on commit da86de7

Please sign in to comment.
Something went wrong with that request. Please try again.