Fix compilation for LocalTime types