toLocaleString ignores input options

Site Outreach Issue #4667605

Details

Created
Sep 21, 2015
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

A JSFiddle is available at http://jsfiddle.net/984kuwqe/, which consists of:

new Date().toLocaleString('en-US’, { year: 'numeric’, month: 'short’, day: 'numeric’, timeZone: 'UTC’, timeZoneName: ‘short’ })

Expected Results:

Options passed into Date.toLocaleString() should be respected per documentation at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString. The following code should output “Sep 19, 2015, GMT” in all browsers:

new Date().toLocaleString('en-US’, { year: 'numeric’, month: 'short’, day: 'numeric’, timeZone: 'UTC’, timeZoneName: ‘short’ })

In fact, it returns “‎9‎/‎19‎/‎2015‎ ‎12‎:‎34‎:‎00‎ ‎AM‎ ‎GMT” in Edge 20.10240.16382.0. Chrome 45, Firefox 40.0.3, and IE 11 all return the expected content.

Actual Results:

Dev Channel specific:

No

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Kamen M.”

      Changed Assigned To to “ChakraTriage”

      Changed Assigned To from “ChakraTriage” to “Brahma G.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Brahma G.” to “Kunal P.”

      Changed Assigned To from “Kunal P.” to “Brahma G.”

      Changed Status from “Confirmed” to “Site Outreach”

    You need to sign in to your Microsoft account to add a comment.

    Sign in