I'm returning a timestamp from SQL server as an integer (seconds after 1/1/1970). The problem I'm having is that dojo (or javascript) is assuming the timestamp is GMT and then converting it to my local time zone. Is there a way to set the time zone when I create the new date, or tell dojo not to make the conversion? This is my code
function formatDate(value) {
// SQL Server returns seconds -- multiply by 1000 to get milliseconds
var date = new Date(parseInt(value) * 1000);
return ddl.format(date, {//ddl is dojo/date/local
selector: "date",
datePattern: 'MM/dd/yyyy h:m a'
});
}
Because of standard and daylight times I really dont want to add time to my timestamp
Thanks