Title: `aem` Date format not compatible with ECMA Script · Issue #103 · adobe/aio-lib-java · GitHub
Open Graph Title: `aem` Date format not compatible with ECMA Script · Issue #103 · adobe/aio-lib-java
X Title: `aem` Date format not compatible with ECMA Script · Issue #103 · adobe/aio-lib-java
Description: Events produced by aem have the form: { "event_id": "2e38cbbe-4426-468c-b5ff-a8940e3210a6", "event": { "@id": "urn:oeid:aem:779885b1-f2fa-480d-b0c0-5a93619c5d29", "@type": "xdmCreated", "activitystreams:published": "2021-03-16T10:54:47.0...
Open Graph Description: Events produced by aem have the form: { "event_id": "2e38cbbe-4426-468c-b5ff-a8940e3210a6", "event": { "@id": "urn:oeid:aem:779885b1-f2fa-480d-b0c0-5a93619c5d29", "@type": "xdmCreated", "activityst...
X Description: Events produced by aem have the form: { "event_id": "2e38cbbe-4426-468c-b5ff-a8940e3210a6", "event": { "@id": "urn:oeid:aem:779885b1-f2fa-480d-b0c0-5a93...
Opengraph URL: https://github.com/adobe/aio-lib-java/issues/103
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`aem` Date format not compatible with ECMA Script","articleBody":"Events produced by `aem` have the form:\r\n\r\n```\r\n{\r\n \"event_id\": \"2e38cbbe-4426-468c-b5ff-a8940e3210a6\",\r\n \"event\": {\r\n \"@id\": \"urn:oeid:aem:779885b1-f2fa-480d-b0c0-5a93619c5d29\",\r\n \"@type\": \"xdmCreated\",\r\n \"activitystreams:published\": \"2021-03-16T10:54:47.037+01\",\r\n \"activitystreams:to\": {\r\n \"@type\": \"xdmImsOrg\",\r\n \"xdmImsOrg:id\": \"B28447B65D88A19F0A495C33@AdobeOrg\"\r\n },\r\n \r\n```\r\n... \r\n\r\n\r\n \r\nUnfortunately, the JavaScript methods Date.parse() or new Date() cannot parse Date-Strings like that one:\r\n\r\n`2021-03-16T10:54:47.037+01 //ERROR!!`\r\n\r\n(even though it's proper ISO-8601) The correct format is \r\n\r\n`2021-03-16T10:54:47.037+01:00`\r\n \r\n\r\nWith the additional minute-denominator in the timezone (yes - there are half-hour time zones on the globe ..)\r\n\r\nWhat also is allowed is `2021-03-16T10:54:47.037Z`\r\nfor \"Zulu-time\" which is equivalent to \"+00:00\"\r\n\r\nNow we should assume that 90% of the receivers are implemented in I/O runtime and thus implemented in JS. So I think it's worth the effort fixing it.\r\n\r\nYou can argue, that this can easily be done with a regex in the client code... \r\nBUT: Most of the time I received valid events with \"Z\" timezone.. and my code worked perfectly well. \r\nUntil now, when I saw these \"incomplete\" \"+01\" showing up in the queue.. \r\nand my perfectly working code stopped working \r\n\r\nBTW: \"+01:00\" also is perfectly ISO-8601 compatible... so it should be safe to use that format instead.","author":{"url":"https://github.com/francoisledroff","@type":"Person","name":"francoisledroff"},"datePublished":"2022-04-07T15:14:12Z","url":"https://github.com/adobe/aio-lib-java/issues/103"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:592cd2a7-3a2c-53de-f739-09d8a9f45f44 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8526:255CB0:488B75:63744C:6AED5723 |
| html-safe-nonce | ee753f1f494f7c83af1c2deb3062a51d7a820e9518cffb959b4019ed90563424 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTI2OjI1NUNCMDo0ODhCNzU6NjM3NDRDOjZBRUQ1NzIzIiwidmlzaXRvcl9pZCI6IjI1MTMxNDA5MzQ2OTM5Njc2NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5cace94833f2afe75fb1e9759143deddeab20820baf27b616d00304364e6f726 |
| hovercard-subject-tag | issue:1196194604 |
| 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/adobe/aio-lib-java/103/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6f6780e83b0e66db0f7141dcf023e6999be69ff5387a97a3bfb4d073c6a43301/adobe/aio-lib-java/issues/103 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f6780e83b0e66db0f7141dcf023e6999be69ff5387a97a3bfb4d073c6a43301/adobe/aio-lib-java/issues/103 |
| og:image:alt | Events produced by aem have the form: { "event_id": "2e38cbbe-4426-468c-b5ff-a8940e3210a6", "event": { "@id": "urn:oeid:aem:779885b1-f2fa-480d-b0c0-5a93619c5d29", "@type": "xdmCreated", "activityst... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | francoisledroff |
| hostname | github.com |
| expected-hostname | github.com |
| None | 56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11 |
| turbo-cache-control | no-preview |
| go-import | github.com/adobe/aio-lib-java git https://github.com/adobe/aio-lib-java.git |
| octolytics-dimension-user_id | 476009 |
| octolytics-dimension-user_login | adobe |
| octolytics-dimension-repository_id | 373202255 |
| octolytics-dimension-repository_nwo | adobe/aio-lib-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 373202255 |
| octolytics-dimension-repository_network_root_nwo | adobe/aio-lib-java |
| 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 | 9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width