I have a simple Datetimepicker:
$('#deadline_picker').datetimepicker();
Trivially I can produce the utc / or local date string with var x= new Date(timestamp)
or var x= (new Date(timestamp)).toUTCString()
. And Assign it as a value to the field - $('#deadline_picker').val(x)
But for one the Datetime Picker object does not seem responsive to programmatic changes (if the Calendar has a certain date selected it will still show the same date selected and it does not appear to be timezone conscious). It is very critical for me to be able to set an exact equivalent of the Epoch time programmatically. Supposedly the datetimepicker has API methods, but the docs don't have a single example.
Edit: I'm using the copy that's referenced as being currently maintained: https://github.com/Eonasdan/bootstrap-datetimepicker
Edit2: Apparently it has different methods from: http://www.malot.fr/bootstrap-datetimepicker/ But neither of them seem to have Timezone support.