Title: new Date() does not recognize particular date string · Issue #7583 · NativeScript/NativeScript · GitHub
Open Graph Title: new Date() does not recognize particular date string · Issue #7583 · NativeScript/NativeScript
X Title: new Date() does not recognize particular date string · Issue #7583 · NativeScript/NativeScript
Description: Environment ✔ Component nativescript has 6.0.2 version and is up to date. ✔ Component tns-core-modules has 6.0.1 version and is up to date. ✔ Component tns-android has 6.0.0 version and is up to date. ✔ Component tns-ios has 6.0.1 versio...
Open Graph Description: Environment ✔ Component nativescript has 6.0.2 version and is up to date. ✔ Component tns-core-modules has 6.0.1 version and is up to date. ✔ Component tns-android has 6.0.0 version and is up to da...
X Description: Environment ✔ Component nativescript has 6.0.2 version and is up to date. ✔ Component tns-core-modules has 6.0.1 version and is up to date. ✔ Component tns-android has 6.0.0 version and is up to da...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/7583
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"new Date() does not recognize particular date string","articleBody":"**Environment**\r\n\r\n✔ Component nativescript has 6.0.2 version and is up to date.\r\n✔ Component tns-core-modules has 6.0.1 version and is up to date.\r\n✔ Component tns-android has 6.0.0 version and is up to date.\r\n✔ Component tns-ios has 6.0.1 version and is up to date.\r\n\r\n\r\n**Describe the bug**\r\n\u003c!-- A clear and concise description of what the bug is. Please, explain whether it's a build time error or a runtime error. More detailed logs can be easily obtained by following the instructions in this guide: https://docs.nativescript.org/get-support#how-to-obtain-diagnostic-reports. -->\r\n`new Date()` function does not recognize **this** particular date string format `Fri, 12 Jul 2019 08:33:59 Z` \r\n**To Reproduce**\r\n\u003c!-- Add commands used or steps taken to reproduce the behaviour. -->\r\n```\r\n// In Nativescript Core \r\nlet date = new Date(\"Fri, 12 Jul 2019 08:33:59 Z\")\r\nconsole.log(date)\r\ndate is Invalid Date\r\n```\r\n**Expected behavior**\r\n```\r\n// In node v10.16.0\r\nlet date = new Date(\"Fri, 12 Jul 2019 08:33:59 Z\")\r\nconsole.log(date)\r\n2019-07-12T08:33:59.000Z\r\n```\r\n\r\n**Additional context**\r\n\u003c!-- Add any other context about the problem here. -->\r\nI also notice the same behavior in tns 5.4.2\r\n\r\nThank you.","author":{"url":"https://github.com/mandrag0ra","@type":"Person","name":"mandrag0ra"},"datePublished":"2019-07-25T12:00:54Z","url":"https://github.com/NativeScript/NativeScript/issues/7583"}
| 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:06a5761d-9c6c-f815-237a-a8abe15b7b60 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B534:10531B:8721D7:AC4916:6B012414 |
| html-safe-nonce | d1ae1d2ad3f35216af3b8dad47c780b9e8815dc88c627ccef4a2bd6a6e3d13ca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTM0OjEwNTMxQjo4NzIxRDc6QUM0OTE2OjZCMDEyNDE0IiwidmlzaXRvcl9pZCI6Ijg5NTUxODQ2NTU2NjYwNjIzNTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f229229d57bac9ff13ca417392ecf506cfd2d29247f5cf7b8985cf7fc51723d1 |
| hovercard-subject-tag | issue:472825723 |
| 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/NativeScript/NativeScript/7583/issue_layout |
| twitter:image | https://opengraph.githubassets.com/85480a14b069c863bd0f929b9f96cd100fd7b642e28794181936f1f129d380eb/NativeScript/NativeScript/issues/7583 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/85480a14b069c863bd0f929b9f96cd100fd7b642e28794181936f1f129d380eb/NativeScript/NativeScript/issues/7583 |
| og:image:alt | Environment ✔ Component nativescript has 6.0.2 version and is up to date. ✔ Component tns-core-modules has 6.0.1 version and is up to date. ✔ Component tns-android has 6.0.0 version and is up to da... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mandrag0ra |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| 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