Skip to content

Use organization time zone when decidim-api is used#6088

Merged
tramuntanal merged 4 commits intodevelopfrom
bugfix/use-right-time_zone
May 14, 2020
Merged

Use organization time zone when decidim-api is used#6088
tramuntanal merged 4 commits intodevelopfrom
bugfix/use-right-time_zone

Conversation

@jesusdb
Copy link
Copy Markdown
Contributor

@jesusdb jesusdb commented May 12, 2020

🎩 What? Why?

As @microstudi stated, comments use the API to obtain the data, and its controller was not configured to use the organization time zone. This is why the comments were displaying a UTC based time zone instead of the organization's.

This pull request makes the base controller for decidim-api use the organization time zone.

📌 Related Issues

📋 Subtasks

  • Add CHANGELOG entry
  • Add tests

Leusev
Leusev previously approved these changes May 13, 2020
Copy link
Copy Markdown
Contributor

@Leusev Leusev left a comment

Choose a reason for hiding this comment

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

It looks good for me @jesusdb , good job!

@tramuntanal tramuntanal added the release: v0.22 Issues that need to be tackled for v0.22 label May 13, 2020
Copy link
Copy Markdown
Contributor

@Leusev Leusev left a comment

Choose a reason for hiding this comment

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

All ok now @jesusdb

@tramuntanal tramuntanal merged commit 84d34bf into develop May 14, 2020
@tramuntanal tramuntanal deleted the bugfix/use-right-time_zone branch May 14, 2020 10:00
ace pushed a commit to aspgems/decidim that referenced this pull request May 19, 2020
* develop:
  Collapse and expand questions when editing questionnaire (decidim#6099)
  Projects budget votes and selected styles (decidim#5950)
  Fix avatar deformation in CSS (decidim#5990)
  Use organization time zone when decidim-api is used (decidim#6088)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: v0.22 Issues that need to be tackled for v0.22

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants