Update time function to use correct timezone.