Skip to content

Commit df2e352

Browse files
author
Thomas Plessis
committed
Minor fix on UTC date.
1 parent 843f371 commit df2e352

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bundles/ng2-datepicker.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundles/ng2-datepicker.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ng-datepicker/ng-datepicker.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export class NgDatepickerComponent implements ControlValueAccessor, OnInit, OnCh
165165

166166
setDate(i: number): void {
167167
this.date = this.days[i].date;
168-
this.value = new Date(Date.UTC(this.date.getFullYear(), this.date.getMonth(), this.date.getDay()));
168+
this.value = new Date(Date.UTC(this.date.getFullYear(), this.date.getMonth(), this.date.getDate()));
169169
this.init();
170170
this.close();
171171
}

0 commit comments

Comments
 (0)