-
Notifications
You must be signed in to change notification settings - Fork 627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UTC date parsing issue #796
Comments
Can we get some attention to this issue? Or else I won’t be able to upgrade to Expo SDK 47 which uses RN 0.70 |
Hi, Thanks for your feedback, and apologies for the delayed response. This is in the teams radar, but even if we were to add this support today, RN 0.70 has already shipped, and thus this support won't be available in that version. John Paul |
I thought this can be sent in a patch release, once this is solved in Hermes, We can ask in the react native releases discussion, if not I am ok to wait for some time, as only one project is blocked due to this, and AFAIK RN v0.70 Hermes is the default so it cannot be turned off, currently I have turned off Hermes to use the v0.69 |
Hi, Hermes being the default doesn't mean it is required. You can still disable it in your project (see this). Also, note that Hermes is only the default for new projects: Existing projects should be using their engine of choice. If not, reach out to the RN folks as this is probably a bug. John Paul |
Hi @raajnadar we put together a fix which should be landing soon.
If you can, could you elaborate a bit on this point? It would be good to know how broadly this inconsistency between JSC and Hermes could currently be affecting users. |
Summary: This is addressing a gap between Hermes and V8 regarding date parsing, raised in #796 . There is whitespace allowed between M D Y. However, we should also support allowing a dash to be present as the first character in those gaps. Reviewed By: jpporto Differential Revision: D40368889 fbshipit-source-id: 5a9529300a221609ebb5c59dc44c4cf97a153700
@fbmal7 I had a misunderstanding, I thought RN 0.70+ required Hermes to be enabled, after clearly reading the docs I found it is only default for the new apps. Expo SDK 47 will add support for RN 0.70.3 in the Expo Go app, so I thought I won't be able to upgrade, but I was wrong |
Okay, but either way at one point this date behavior was causing some incompatibility, correct? I was just interested in learning more about how this was preventing you from using Hermes. But the fix has been shipped in a26472f :) |
Actually, when I enabled Hermes it was leading to an app crash, so I turned off the Hermes and build the apk And it crashed only on the apk or aab, not in the dev environment so it was tricky to debug the issue |
So then, how did you determine that Expo was depending on Hermes supporting this Date format? |
I strictly follow the Expo SDK version to upgrade my React Native version, in Expo SDK 47, RN 0.70 is planned, previously I had confusion about Hermes being the default which is clear now. I use Expo Go for development The app crashed when Hermes was enabled. I had to run the expo in prod mode to get the crash logs. It crashed because I was passing the date to the Date Fns library’s |
So you were providing the Date yourself? I thought you were saying Expo itself produced Dates in that format, thus making Expo and Hermes incompatible for some version of Expo. |
No, the date was returned by my PHP server, not sure why the backend dev was sending this format, we usually get ISO format which works very well with Hermes. To be clear Expo is my dev tool, I am using Hermes in every application that is run using Expo Go, we found this date issue only in 1 project which was sending a different date format, with ISO there are no issues. |
Summary: This is addressing a gap between Hermes and V8 regarding date parsing, raised in #796 . There is whitespace allowed between M D Y. However, we should also support allowing a dash to be present as the first character in those gaps. Original Author: fbmal7 Original Git: f30f5210e007191972731bece675d18e56c64143 Original Reviewed By: jpporto Original Revision: D40368889 Reviewed By: tmikov Differential Revision: D41240843 fbshipit-source-id: 474e4216057b1246443c0e4d8d8efb9a78d9f903
Summary: This is addressing a gap between Hermes and V8 regarding date parsing, raised in facebook#796 . There is whitespace allowed between M D Y. However, we should also support allowing a dash to be present as the first character in those gaps. Original Author: fbmal7 Original Git: a26472f Original Reviewed By: jpporto Original Revision: D40368889 Reviewed By: tmikov Differential Revision: D41240843 fbshipit-source-id: 474e4216057b1246443c0e4d8d8efb9a78d9f903
Summary: This is addressing a gap between Hermes and V8 regarding date parsing, raised in facebook#796 . There is whitespace allowed between M D Y. However, we should also support allowing a dash to be present as the first character in those gaps. Original Author: fbmal7 Original Git: f30f5210e007191972731bece675d18e56c64143 Original Reviewed By: jpporto Original Revision: D40368889 Reviewed By: tmikov Differential Revision: D41240843 fbshipit-source-id: 474e4216057b1246443c0e4d8d8efb9a78d9f903
Summary: This is addressing a gap between Hermes and V8 regarding date parsing, raised in facebook#796 . There is whitespace allowed between M D Y. However, we should also support allowing a dash to be present as the first character in those gaps. Original Author: fbmal7 Original Git: a26472f Original Reviewed By: jpporto Original Revision: D40368889 Reviewed By: tmikov Differential Revision: D41240843 fbshipit-source-id: 474e4216057b1246443c0e4d8d8efb9a78d9f903
Summary: This is addressing a gap between Hermes and V8 regarding date parsing, raised in facebook#796 . There is whitespace allowed between M D Y. However, we should also support allowing a dash to be present as the first character in those gaps. Original Author: fbmal7 Original Git: f30f5210e007191972731bece675d18e56c64143 Original Reviewed By: jpporto Original Revision: D40368889 Reviewed By: tmikov Differential Revision: D41240843 fbshipit-source-id: 474e4216057b1246443c0e4d8d8efb9a78d9f903
Summary: This is addressing a gap between Hermes and V8 regarding date parsing, raised in facebook#796 . There is whitespace allowed between M D Y. However, we should also support allowing a dash to be present as the first character in those gaps. Original Author: fbmal7 Original Git: a26472f Original Reviewed By: jpporto Original Revision: D40368889 Reviewed By: tmikov Differential Revision: D41240843 fbshipit-source-id: 474e4216057b1246443c0e4d8d8efb9a78d9f903
Problem
Hermes
JSC
Chrome browser dev tools
Solution
Add support for this date format
Additional Context
It looks similar to this issue ticket #219
The text was updated successfully, but these errors were encountered: