Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Add UTC support #107

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

shawmanz32na
Copy link

@shawmanz32na shawmanz32na commented May 12, 2016

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

Kevin Shaw added 3 commits May 11, 2016 11:01
Specifying the mdp-use-utc="true" attribute on the mdp-time-picker
element will cause the Time Picker to display the time in UTC instead of
the local time.
@shawmanz32na shawmanz32na changed the title Add utc support Add UTC support May 12, 2016
…utc-support

# Conflicts:
#	src/components/mdpDatePicker/mdpDatePicker.js
#	src/components/mdpTimePicker/mdpTimePicker.js
@Georgevik
Copy link

+1

@shawmanz32na shawmanz32na mentioned this pull request May 20, 2016
@ericsvendsen
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants