Added function to calculate time difference between local time and GMC time