account for system time zone in calendar js [master]

Resolves #883 for master