I'm using AngularJS Bootstrap UI Datepicker with moment and moment-timezone. I set an inital date based on given timezone. So Datepicker works well if I set Date object as a ng-model:
$scope.dt = new Date() //works
but if I want to get current time in given timezone nothing shows up in datepicker (here I'm sending string):
$scope.dt = moment(new Date()).tz("Pacific/Auckland").format(); //not working
How can I fix this. Here is plunker