Skip to content

Comments

Use the correct backend timezone config key#337

Merged
LukeTowers merged 1 commit intowintercms:developfrom
msimkunas:backend_helper_timezone
Oct 21, 2021
Merged

Use the correct backend timezone config key#337
LukeTowers merged 1 commit intowintercms:developfrom
msimkunas:backend_helper_timezone

Conversation

@msimkunas
Copy link
Contributor

@msimkunas msimkunas commented Oct 21, 2021

This PR changes the backend timezone config key from backend.timezone (which does not exist) to cms.backendTimezone in the Backend::makeCarbon helper.

I'm using this helper within a class that transforms dates for both the backend and the frontend. The system falls back to the default timezone if no user preference is found and since backend.timezone does not exist, the app.timezone key is used instead, which is why some dates were not using the proper timezone in the frontend in my case.

This helper doesn't seem to be used much within modules/ therefore this shouldn't be a breaking change.

@LukeTowers LukeTowers added Status: Completed maintenance PRs that fix bugs, are translation changes or make only minor changes labels Oct 21, 2021
@LukeTowers LukeTowers added this to the v1.1.7 milestone Oct 21, 2021
@LukeTowers LukeTowers merged commit e69f4f7 into wintercms:develop Oct 21, 2021
LukeTowers added a commit that referenced this pull request Nov 13, 2021
* develop: (25 commits)
  Support embedded data URIs in the list image column type
  Make some adjustments to the readme content
  Update banner in readme
  Add new GitHub banner
  Documentation with icons (#347)
  Limit options shown in group filter, apply scope when retrieving filtered options
  Add Exception on wrong relation type in relation formwidget (#334)
  Redesigned color picker widget (#324)
  Add winter:test command (#202)
  Use the correct backend timezone config key (#337)
  Get changelog only of the current branch
  Fix Markdown editor sizing issue on Chrome.
  Check overrides for parent locale when compiling language files (#242)
  Fixing commas in English translation files (#305)
  Added Latvian translations for Allowed IP messages (#304)
  Add missing filter translations (#303)
  Clean up newlines
  Update Russian language (#302)
  Fix issue present in overriding RelationController partials using the default code
  Maintenance Allowed IP list (#147)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance PRs that fix bugs, are translation changes or make only minor changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants