Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set custom time when "Now" button is pressed #220

Open
Maciejszuchta opened this issue Apr 5, 2018 · 2 comments
Open

Set custom time when "Now" button is pressed #220

Maciejszuchta opened this issue Apr 5, 2018 · 2 comments

Comments

@Maciejszuchta
Copy link

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

@Gillardo
Copy link
Owner

Gillardo commented Apr 5, 2018

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

@Maciejszuchta
Copy link
Author

Maciejszuchta commented Apr 5, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants