add exception handler and use local timezone.