Merge changes from topic 'time_format_settings'

* changes:
  Extract is24HourLocale method.
  Allow null value for TIME_12_24 setting.