angular-moment-picker icon indicating copy to clipboard operation
angular-moment-picker copied to clipboard

Force picker to use new time zone

Open CJDennis opened this issue 4 years ago • 0 comments

I've created a form control that allows the user to select the time zone on the fly. It works very nicely, automatically updating the display value in the picker control. However, after setting a different time zone on the value in the model, the picker reverts to using local time until a new time is selected via the control.

How can I force refresh the control or otherwise get this to work? If I could say onTimeZoneSelect() { picker.controller.setDate(model.date); }, that should work but I don't know how to to that.

CJDennis avatar Jul 22 '20 01:07 CJDennis