Skip to content

Commit

Permalink
main - 625082c refactor(multiple): re-add missing feedback (#29803)
Browse files Browse the repository at this point in the history
  • Loading branch information
crisbeto committed Sep 30, 2024
1 parent 0db8626 commit 141ab3c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions fesm2022/material-moment-adapter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class MomentDateAdapter extends DateAdapter {
throw Error(`Invalid seconds "${seconds}". Seconds value must be between 0 and 59.`);
}
}
return this.clone(target).set({ hours, minutes, seconds });
return this.clone(target).set({ hours, minutes, seconds, milliseconds: 0 });
}
getHours(date) {
return date.hours();
Expand All @@ -193,8 +193,8 @@ class MomentDateAdapter extends DateAdapter {
parseTime(value, parseFormat) {
return this.parse(value, parseFormat);
}
addMilliseconds(date, amount) {
return this.clone(date).add({ milliseconds: amount });
addSeconds(date, amount) {
return this.clone(date).add({ seconds: amount });
}
/** Creates a Moment instance while respecting the current UTC settings. */
_createMoment(date, format, locale) {
Expand Down
Loading

0 comments on commit 141ab3c

Please sign in to comment.