danielmoncada / date-time-picker

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

Display UTC #71

Closed wwjd1234 closed 2 years ago

wwjd1234 commented 4 years ago

How can we display UTC format instead of the GMT time?

danielmoncada commented 4 years ago

@wwjd1234 are you using moment?

danielmoncada commented 3 years ago

@wwjd1234 any updates on this?

wwjd1234 commented 3 years ago

Yes I am using moment. It seems if I use UTC the browser converts it to local time for viewing, but once I read/set the date it is back to UTC. Same in the reverse, if I use local time but the browser displays in UTC then when I read/set I get local time not UTC. Is there. Way to have UTC be set in code and for display. Any ideas or code examples would be helpful.

danielmoncada commented 2 years ago

stale, closing