bootstrap-ui-datetime-picker icon indicating copy to clipboard operation
bootstrap-ui-datetime-picker copied to clipboard

Set custom time when "Now" button is pressed

Open Maciejszuchta opened this issue 7 years ago • 2 comments
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. image

image

Maciejszuchta avatar Apr 05 '18 10:04 Maciejszuchta

you could just use the saveAs option?? Look at the demo pages for more info

Gillardo avatar Apr 05 '18 10:04 Gillardo

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

Maciejszuchta avatar Apr 05 '18 10:04 Maciejszuchta