AngularJS Display Time in PDT/PST

Viewed 885

Using ng-model-options or the date is it possible to set a timezone to automatically adjust for daylight savings time (i.e. switch between PST and PDT based on the value)?

For example:

<input type="date" ng-model="order.scheduled" ng-model-options="{ timezone: 'PST' }" />
<input type="time" ng-model="order.scheduled" ng-model-options="{ timezone: 'PST' }" />

Only works when the time falls into standard time (not daylight time).

1 Answers
Related