You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
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?
The text was updated successfully, but these errors were encountered: