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

Replace transformation from UTC to local #406

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

vitPinchuk
Copy link
Contributor

Resolves: #394

@vitPinchuk vitPinchuk self-assigned this May 9, 2024
Copy link

codecov bot commented May 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.11%. Comparing base (2869fe4) to head (8271b44).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #406   +/-   ##
=======================================
  Coverage   99.10%   99.11%           
=======================================
  Files          69       69           
  Lines        1458     1462    +4     
  Branches      418      379   -39     
=======================================
+ Hits         1445     1449    +4     
  Misses         11       11           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mikhail-vl mikhail-vl added the enhancement New feature or request label May 9, 2024
@mikhail-vl mikhail-vl added this to the Version 4.0.0 milestone May 9, 2024
src/migration.ts Outdated
if (!!options.elements?.length) {
options.elements.forEach((element) => {
if (element.type === FormElementType.DATETIME && !element.hasOwnProperty('isUseLocalTime')) {
element.isUseLocalTime = false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need migration? by default it will be an undefined which is falsy. Otherwise, please replace mutation to a solution with immutable update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

ElementDateEditor cyclically transforms non UTC dates to UTC on every onChange()
3 participants