Skip to content

Commit

Permalink
Minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adamalbrecht committed Nov 24, 2013
1 parent 46c8db9 commit dd17e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ng-quick-date.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ app.directive "datepicker", ['ngQuickDateDefaults', '$filter', (ngQuickDateDefau
if (d.toString() == "Invalid Date")
d = new Date()
d.setDate(1)
scope.calendarDate = parseDateString(d)
scope.calendarDate = new Date(d)

setCalendarRows = ->
offset = scope.calendarDate.getDay()
Expand Down

0 comments on commit dd17e87

Please sign in to comment.