tempusdominus / bootstrap-3

Tempus Dominus Bootstrap 3
https://getdatepicker.com/5-3/
MIT License
71 stars 23 forks source link

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

Open VedaRamaiah opened 5 years ago

VedaRamaiah commented 5 years ago

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?