local_time_for_* helper functions