bootstrap-ui-datetime-picker
bootstrap-ui-datetime-picker copied to clipboard
Set custom time when "Now" button is pressed
trafficstars
Hello
What I'm trying to achieve is when "Now" button is pressed in Time picker I want to set the time to UTC although my time zone is UTC+2.
The server that provides my webpage is on UTC but when using "Now" time is set as the local browser.


you could just use the saveAs option?? Look at the demo pages for more info
If I do it like this
<input id="InputDate" type="text" class="form-control" datetime-picker="yyyy-MM-dd'T'HH:mm:ss.sss'Z'" save-as="UTC" ng-model-options="{timezone: 'UTC'}" is-open="ctrl.dateStart.showFlag" ng-model="searchObject.startDate.value" >
It still saves my local time