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

Today button (Datetimepicker ) on click shows local time even though timeZone is defined to be UTC #120

Open
VedaRamaiah opened this issue Sep 12, 2019 · 0 comments

Comments

@VedaRamaiah
Copy link

When I click on "Today" button , local time gets displayed instead of UTC time. I have specified timeZone to be "UTC" and default date shows in UTC format whereas today button on click chnages to local time.

$(".form_datetime").datetimepicker({
timeZone: 'UTC',
format: "YYYY-MM-DD HH:mm:ss UTCZ",
defaultDate: moment().tz('UTC')
})
How to solve this?

@VedaRamaiah VedaRamaiah changed the title Today button on click shows local time even though timeZone is defined to be UTC Today button (Datetimepicker ) on click shows local time even though timeZone is defined to be UTC Sep 12, 2019
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

1 participant