Skip to content

Commit

Permalink
fix for the releaseDate (#694)
Browse files Browse the repository at this point in the history
post releaseDate to Date format
  • Loading branch information
preethamlv authored and addyosmani committed Dec 11, 2017
1 parent 2d3d211 commit 23e97f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion practicals/exercise-2/site/js/views/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ app.LibraryView = Backbone.View.extend({
formData[ el.id ].push({ 'keyword': keyword });
});
} else if( el.id === 'releaseDate' ) {
formData[ el.id ] = $( '#releaseDate' ).datepicker( 'getDate' ).getTime();
formData[ el.id ] = new Date($( '#releaseDate' ).val());
} else {
formData[ el.id ] = $( el ).val();
}
Expand Down

0 comments on commit 23e97f6

Please sign in to comment.