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?
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?