Support readline in localtime.