Skip to content
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

fix(condo): DOMA-7969 fixed a imported date #4175

Closed

Conversation

Alllex202
Copy link
Contributor

@Alllex202 Alllex202 commented Dec 11, 2023

Problem: V8 (JavaScript engine) has issue with Date.getTimeZoneOffset. Because of this, dates from files are not imported correctly and have some deviation from the specified date of a few seconds

Example:

  1. Client input in cell: 2023-12-01 00:00:00
  2. We get in code and show to client: 2023-11-30 23:59:27
  3. Client: WTF!?

Links:
https://bugs.chromium.org/p/v8/issues/detail?id=7863 - V8 (JavaScript engine) has issue with Date.getTimezoneOffset
SheetJS/sheetjs#1565 (comment) - Description and solution to the problem

@Alllex202 Alllex202 added the ✋🙂 Review please Comments are resolved, take a look, please label Dec 11, 2023
@Alllex202 Alllex202 force-pushed the fix/condo/DOMA-7969/fix-date-from-imported-ipu branch from 44bf8a4 to e791174 Compare December 11, 2023 18:43
@Alllex202 Alllex202 added the 👶 small Easy to review changes up to 50 lines of code label Dec 12, 2023
@Alllex202 Alllex202 force-pushed the fix/condo/DOMA-7969/fix-date-from-imported-ipu branch from e791174 to 1517791 Compare December 15, 2023 09:35
@Alllex202 Alllex202 force-pushed the fix/condo/DOMA-7969/fix-date-from-imported-ipu branch from 1517791 to 1731c0c Compare December 18, 2023 11:49
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@Alllex202 Alllex202 added 🔬 WIP Not intended to be merged right now, it is a work in progress Stuck 😶‍🌫️ I faced difficulties… and removed ✋🙂 Review please Comments are resolved, take a look, please 👶 small Easy to review changes up to 50 lines of code labels Dec 19, 2023
@Alllex202
Copy link
Contributor Author

The solution does not work as expected in all cases. Let's come back to this problem later

@Alllex202 Alllex202 closed this Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stuck 😶‍🌫️ I faced difficulties… 🔬 WIP Not intended to be merged right now, it is a work in progress
Development

Successfully merging this pull request may close these issues.

3 participants