Angular UI datepicker is getting wrong date

JavaScript
    service.ConvertDateToJSONDate = function (dateInput) {
        if (dateInput === null || dateInput === undefined) {
            return null;
        }
        //return "\/Date(" + dateInput.getTime().toString() + ")\/";
        return "\/Date(" + (dateInput.getTime() + 10800000).toString() + ")\/";
    };

Usage: service.ConvertDateToJSONDate(SelectedDateObjectToBeConverted);
Source

Also in JavaScript: