Add a DateTimeFormatter class which allows overwriting the language and timezone

Fix #12227