Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(moment-dateadapter): add option to create utc dates #11336

Merged
merged 9 commits into from
Jun 27, 2018
4 changes: 0 additions & 4 deletions src/material-moment-adapter/adapter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ export * from './moment-date-formats';
provide: DateAdapter,
useClass: MomentDateAdapter,
deps: [MAT_DATE_LOCALE, MAT_MOMENT_DATE_ADAPTER_OPTIONS]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I found why the tests did not work. Now with the MAT_MOMENT_DATE_ADAPTER_OPTIONS in the deps all tests pass.

},
{
provide: MAT_MOMENT_DATE_ADAPTER_OPTIONS,
useFactory: MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY
}
],
})
Expand Down