set-date-time: add locale gen func