account for system time zone in calendar js

Resolves #883 by converting all dates to the correct time zone before working with them.