X
Tap here to go to the mobile version of the site.

Support Forum

Date picker widgets use US format in Firefox; all my other browsers correctly use UK format

Posted

We have various date selection widgets on our website, using a calendar picker format. But when the date is actually displayed as a date, Firefox (Mac) always shows it in US format rather than UK format. My other browsers - Safari and Chrome - correctly show the UK format. My Mac OS uses the UK format.

Our developers say the HTML5 date pickers in Firefox and Chrome follow the computer's locale settings, and that it's not possible for them to specify a format in the code.

If that's the case, why does Chrome correctly show the UK format but Firefox doesn't?

I've checked the locale info in Firefox - here's what it shows:

Internationalisation & Localisation Application Settings Requested Locales ["en-GB","en-US"] Available Locales ["en-GB","en-US"] App Locales ["en-GB","en-US"] Regional Preferences ["en"] Default Locale "en-GB" Operating System System Locales ["en"] Regional Preferences ["en"]

If I can't fix this I'll have to stop using Firefox as my default browser because the date format causes too much confusion. It's heavily used for admin functions on our website, and I need to know at a glance that 01/10/2019 is 1 Oct rather than 10 Jan

We have various date selection widgets on our website, using a calendar picker format. But when the date is actually displayed as a date, Firefox (Mac) always shows it in US format rather than UK format. My other browsers - Safari and Chrome - correctly show the UK format. My Mac OS uses the UK format. Our developers say the HTML5 date pickers in Firefox and Chrome follow the computer's locale settings, and that it's not possible for them to specify a format in the code. If that's the case, why does Chrome correctly show the UK format but Firefox doesn't? I've checked the locale info in Firefox - here's what it shows: Internationalisation & Localisation Application Settings Requested Locales ["en-GB","en-US"] Available Locales ["en-GB","en-US"] App Locales ["en-GB","en-US"] Regional Preferences ["en"] Default Locale "en-GB" Operating System System Locales ["en"] Regional Preferences ["en"] If I can't fix this I'll have to stop using Firefox as my default browser because the date format causes too much confusion. It's heavily used for admin functions on our website, and I need to know at a glance that 01/10/2019 is 1 Oct rather than 10 Jan

Additional System Details

Installed Plug-ins

  • Shockwave Flash 31.0 r0

Application

  • Firefox 62.0.2
  • User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:62.0) Gecko/20100101 Firefox/62.0
  • Support URL: https://support.mozilla.org/1/firefox/62.0.2/Darwin/en-GB/

Extensions

  • Easy Screenshot 3.57 (easyscreenshot@mozillaonline.com)
  • eBay item location - My country only 1.1.11 (ebayextension@mountassirhafi.com)
  • Multiple Tab Handler 2.1.4 (multipletab@piro.sakura.ne.jp)
  • Nimbus Screen Capture: Screenshots, Annotate 14.3.5 (nimbusscreencaptureff@everhelper.me)
  • Pinterest Save Button 3.0.99 (jid1-YcMV6ngYmQRA2w@jetpack)
  • BrowserStack 23.7 ({6cc0f0f7-a6e2-4834-9682-24de2229b51e}) (Inactive)

Javascript

  • incrementalGCEnabled: True

Graphics

  • adapterDescription:
  • adapterDeviceID: 0x6938
  • adapterDrivers:
  • adapterRAM:
  • adapterVendorID: 0x1002
  • contentUsesTiling: True
  • crashGuards: []
  • driverDate:
  • driverVersion:
  • featureLog: {u'fallbacks': [], u'features': [{u'status': u'available', u'description': u'Compositing', u'log': [{u'status': u'available', u'type': u'default'}], u'name': u'HW_COMPOSITING'}, {u'status': u'available', u'description': u'OpenGL Compositing', u'log': [{u'status': u'available', u'type': u'default'}], u'name': u'OPENGL_COMPOSITING'}, {u'status': u'opt-in', u'description': u'WebRender', u'log': [{u'status': u'opt-in', u'message': u'WebRender is an opt-in feature', u'type': u'default'}], u'name': u'WEBRENDER'}, {u'status': u'available', u'description': u'Off Main Thread Painting', u'log': [{u'status': u'available', u'type': u'default'}], u'name': u'OMTP'}]}
  • info: {u'TileHeight': 1024, u'ApzWheelInput': 1, u'ApzDragInput': 1, u'ApzKeyboardInput': 1, u'ApzAutoscrollInput': 1, u'AzureFallbackCanvasBackend': u'none', u'TileWidth': 1024, u'AzureCanvasAccelerated': 0, u'AzureCanvasBackend': u'skia', u'AzureContentBackend': u'skia'}
  • numAcceleratedWindows: 2
  • numTotalWindows: 2
  • offMainThreadPaintEnabled: True
  • offMainThreadPaintWorkerCount: 3
  • usesTiling: True
  • webgl1DriverExtensions: GL_ARB_blend_func_extended GL_ARB_draw_buffers_blend GL_ARB_draw_indirect GL_ARB_ES2_compatibility GL_ARB_explicit_attrib_location GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader5 GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_occlusion_query2 GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_subroutine GL_ARB_shading_language_include GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_texture_storage GL_ARB_texture_swizzle GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_attrib_64bit GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_depth_bounds_test GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_mirror_clamp GL_EXT_texture_sRGB_decode GL_APPLE_client_storage GL_APPLE_container_object_shareable GL_APPLE_flush_render GL_APPLE_object_purgeable GL_APPLE_rgb_422 GL_APPLE_row_bytes GL_APPLE_texture_range GL_ATI_texture_mirror_once GL_NV_texture_barrier
  • webgl1Extensions: ANGLE_instanced_arrays EXT_blend_minmax EXT_color_buffer_half_float EXT_frag_depth EXT_sRGB EXT_shader_texture_lod EXT_texture_filter_anisotropic EXT_disjoint_timer_query OES_element_index_uint OES_standard_derivatives OES_texture_float OES_texture_float_linear OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_depth_texture WEBGL_draw_buffers WEBGL_lose_context
  • webgl1Renderer: ATI Technologies Inc. -- AMD Radeon R9 M295X OpenGL Engine
  • webgl1Version: 4.1 ATI-1.51.8
  • webgl1WSIInfo: CGL
  • webgl2DriverExtensions: GL_ARB_blend_func_extended GL_ARB_draw_buffers_blend GL_ARB_draw_indirect GL_ARB_ES2_compatibility GL_ARB_explicit_attrib_location GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader5 GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_occlusion_query2 GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_subroutine GL_ARB_shading_language_include GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_texture_storage GL_ARB_texture_swizzle GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_attrib_64bit GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_depth_bounds_test GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_mirror_clamp GL_EXT_texture_sRGB_decode GL_APPLE_client_storage GL_APPLE_container_object_shareable GL_APPLE_flush_render GL_APPLE_object_purgeable GL_APPLE_rgb_422 GL_APPLE_row_bytes GL_APPLE_texture_range GL_ATI_texture_mirror_once GL_NV_texture_barrier
  • webgl2Extensions: EXT_color_buffer_float EXT_texture_filter_anisotropic EXT_disjoint_timer_query OES_texture_float_linear WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context
  • webgl2Renderer: ATI Technologies Inc. -- AMD Radeon R9 M295X OpenGL Engine
  • webgl2Version: 4.1 ATI-1.51.8
  • webgl2WSIInfo: CGL
  • windowLayerManagerRemote: True
  • windowLayerManagerType: OpenGL
  • windowUsingAdvancedLayers: False

Modified Preferences

Misc

  • User JS: No
  • Accessibility: No
jscher2000
  • Top 10 Contributor
8789 solutions 71880 answers

Hi LynnProspect, can you give a link to a page with the date field/calendar picker in question? I'm curious whether it is using one of the newer HTML5 controls or a JavaScript code library.

Do you know if this problem is limited to MacOS or also affects Windows/Linux users? I would be testing on Windows.

Hi LynnProspect, can you give a link to a page with the date field/calendar picker in question? I'm curious whether it is using one of the newer HTML5 controls or a JavaScript code library. Do you know if this problem is limited to MacOS or also affects Windows/Linux users? I would be testing on Windows.
cor-el
  • Top 10 Contributor
  • Moderator
17571 solutions 158915 answers
See also: *https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date