swift - iOS UIDatePicker timezone causes disabled spinner(s) -


i have uidatepicker set timezone nstimezone(forsecondsfromgmt: seconds). reason time on uidatepicker gets disabled first time set new date, after switch mode .date works again.

how can make 1 work always? if don't set timezone time never gets disabled, need set time zone on.

here code set, newdate nsdate , adjustment seconds.

        self.timepicker.timezone = nstimezone(forsecondsfromgmt: adjustment)         self.timepicker.setdate(newdate, animated: false) 

disabled spinner screenshot: enter image description here


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -