Fix bug #34031 - App crashes when using date/datetime input controls