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 for liquid filter timezone handling #358

Merged

Conversation

jasonheld-msft
Copy link
Contributor

Currently, all date filters except FormatAsDateTime default to "preserve". With a default of "local", all functional tests seem to fail depending on what timezone they are run in. My assumption is that by default the time would not want to be changed when converting to FHIR.

@jasonheld-msft jasonheld-msft changed the title Fir for liquid filter timezone handling Fix for liquid filter timezone handling Mar 8, 2022
@qiwjin qiwjin requested a review from sowu880 March 10, 2022 17:00
@sowu880
Copy link
Contributor

sowu880 commented Mar 16, 2022

@ginalee-dotcom Hi Gina, Could you please help to check this issue about the default behavior for FormatAsDateTime filter. "Preserve" means preserve the original time zone and "local" means transform the input into local time. "Preserve" is more reasonable here but may lead to breaking change.

@sowu880
Copy link
Contributor

sowu880 commented Mar 22, 2022

Thanks a lot for the suggestion.
After discussion, we decide to change the default time zone handling to "preserve".
And more unit tests are added in PR #363

@qiwjin qiwjin merged commit a4c8433 into microsoft:dotliquid Mar 29, 2022
jakiefermsft added a commit to jasonheld-msft/FHIR-Converter that referenced this pull request Apr 26, 2022
…fer/pgcritiques-merge

* 'main' of github.com:microsoft/FHIR-Converter:
  Global Readiness Manifest file GeoPol.xml
  Update version (microsoft#375)
  Remove blank lines (microsoft#374)
  Update Doc for Filters  (microsoft#365)
  Switch FormatAsDateTime timezone handling to preserve to maintain consistency (microsoft#358)
  Revert "reset to local (microsoft#368)"
  reset to local (microsoft#368)
  Phase -2, Milestone-3 Mapping (microsoft#366)
  Change Default Time Zone Handling (microsoft#363)
  Turn on mac functional test check (microsoft#367)
  Fix warnings (microsoft#364)
  Fix Time Zone Bug (microsoft#353)
  Phase2 - Milestone 1&2 Mapping (microsoft#354)
  Add check for large for loops (microsoft#361)
  Updated the logic of checking the number of default templates
  Update pipeline win host version (microsoft#359)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants