Added timezone offset in Javascript functions to handle different timezone between the host and the client