Title: FF Date pipe repeats string · Issue #10509 · angular/angular · GitHub
Open Graph Title: FF Date pipe repeats string · Issue #10509 · angular/angular
X Title: FF Date pipe repeats string · Issue #10509 · angular/angular
Description: I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question Current be...
Open Graph Description: I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/ma...
X Description: I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/angula...
Opengraph URL: https://github.com/angular/angular/issues/10509
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"FF Date pipe repeats string","articleBody":"**I'm submitting a ...** (check one with \"x\")\n\n```\n[x] bug report\n[ ] feature request\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\n```\n\n**Current behavior**\n_FireFox Only_ The date pipe is producing the string incorrectly when using a custom formatting mask. \n\nI'm aware of the fact that there are support problems with the Intl api on Firefox, but want to get this in your backlog.\n\n**Expected/desired behavior**\nThe date string should be produced as per the formatting string.\n\n**Reproduction of the problem**\nIf the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).\nUnfortunately, I couldn't reproduce this in plunkr, but if I set a breakpoint in my code and ran the following it produces the error:\n\n```\ndatePipe.transform(new Date(), \"MM/dd/y\");\n# => \"8/4/2016/8/4/2016/8/4/2016\"\n```\n\nWe see this behavior in a child component that is created from a page via the `\u003crouter-outlet>`.\n\nOne additional thing to note, is that using 'shortDate' as the format seems to work in FF. But if we feed a custom format in there, the error occurs.\n\n**What is the expected behavior?**\n\nI would expect the following code to produce:\n\n```\ndatePipe.transform(new Date(), \"MM/dd/y\");\n# => \"08/04/2016\"\n```\n\n**What is the motivation / use case for changing the behavior?**\n\n**Please tell us about your environment:**\n- **Angular version:** 2.0.0-rc.4\n- **Browser:** [all | Chrome XX | **Firefox 45.2.0** | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] \n- **Language:** [all | **TypeScript 1.8** | ES6/7 | **ES5**] \n","author":{"url":"https://github.com/hartjus","@type":"Person","name":"hartjus"},"datePublished":"2016-08-04T23:40:43Z","url":"https://github.com/angular/angular/issues/10509"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fde36772-a4ae-e616-bafb-acc94e4cd678 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B07E:38C5CF:217D965:2A822C7:6B015A74 |
| html-safe-nonce | 6f031cc6c998d015400f0255cf0e87af71b9530798e919e544c419b5b940df37 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDdFOjM4QzVDRjoyMTdEOTY1OjJBODIyQzc6NkIwMTVBNzQiLCJ2aXNpdG9yX2lkIjoiNDQ3MzIzNTU0MTgyMjg4ODU2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 39c21c969ffb68274ece81eea4c818ed7e3b6e929951a9d4e99191679d05fdc2 |
| hovercard-subject-tag | issue:169498730 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/10509/issue_layout |
| twitter:image | https://opengraph.githubassets.com/96f3719b2be2f7e000370528164cc70ff8f39308d65f46b0943ffdfa6668e662/angular/angular/issues/10509 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/96f3719b2be2f7e000370528164cc70ff8f39308d65f46b0943ffdfa6668e662/angular/angular/issues/10509 |
| og:image:alt | I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/ma... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hartjus |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width