Since Java does not supply the offset of the time zone (from Greenwich) for your local machine, there is a specific parameter for the time zone offset in the HTML that may or may not be accurate.
Note: Offset is negative for east and positive for west of Greenwich, England.
Type the number (minus/plus) from which to count from Greenwich time into value:
var sParamTimeZone= '<param name="zone" value="-5">';
Minus 5 from Greenwich time is the timezone offset for New York.