DanielYKPan / date-time-picker

Angular Date Time Picker (Responsive Design)
https://daniel-projects.firebaseapp.com/owlng/date-time-picker
MIT License
565 stars 356 forks source link

MomentDateTimeAdapter should expose moment object #712

Open jpike88 opened 3 years ago

jpike88 commented 3 years ago

Writing a custom MomentDateTimeAdapter is much easier by extending the existing MomentDateTimeAdapter, but it's no use if the moment object isn't exported or made available somehow.

I use the timezone setting on moment, and without it the adapter isn't useful

https://github.com/DanielYKPan/date-time-picker/blob/5ccf6be2d24c6e074709881d64dd9116c3b6aa14/projects/picker/src/lib/date-time/adapter/moment-adapter/moment-date-time-adapter.class.ts#L11

There should be an easy way to access this. Maybe setting it as a property would be enough

gongAll commented 3 years ago

⛔ ⛔ ⛔ WARNING : READ BEFORE CREATING ISSUES ⛔ ⛔ ⛔ This library was abandoned by its owner. I tried to contact him about 5 months ago with no success. Please cease to open new issues as they will not be handled by him. If you want, there is a fork created by Daniel Moncada and his team which is being currently maintained. Please don't open new issues here so that new users won't be mislead into believing this repo is still up-to-date.