I'm in the process of building out a timeline featured for my web app and I am manipulating the elements added to the timeline by using:
var time_going = new Date(data2.time_going * 1000),
time_going_hour = time_going.getHours(),
time_going_minutes = time_going.getMinutes(),
left_position = (time_going_hour * width_by_hour) + (time_going_minutes * width_by_minute);
The problem is that the left_position is different based on your current timezone because the new date function is returning different information. Is there anyway to force the time to always be consistent to New York time?
The data2.time_going is in Unix Timestamp and is set to 1368687333 for example.