mdPickers icon indicating copy to clipboard operation
mdPickers copied to clipboard

Add UTC support

Open shawmanz32na opened this issue 8 years ago • 2 comments

Adds support for displaying selected date/times in UTC instead of local time by specifying a mdp-use-utc="true" attribute on the mdp-date-picker or mdp-time-picker elements.

Underneath the hood, we leverage moment.js's moment#utc() methods to use the same date/time object that we've always used, but just to display that moment in the UTC time zone.

I'm happy to add the necessary documentation/demos as necessary, but I'm not sure where to do that. Give me some direction and I can tie a bow on any necessary documentation/demos.

Closes issue #105

shawmanz32na avatar May 12 '16 17:05 shawmanz32na

+1

Georgevik avatar May 18 '16 10:05 Georgevik

Nicely done. I wish this would get merged - for now I just cloned your branch.

ericsvendsen avatar Aug 13 '16 04:08 ericsvendsen