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

CRM-21667: Fixed timezone handoff from Drupal6. #11534

Merged
merged 1 commit into from
Jan 18, 2018

Conversation

universalhandle
Copy link
Contributor

@universalhandle universalhandle commented Jan 17, 2018

Overview

Resolves errors resulting from representation of timezone data in different formats.

Before

One place this error can manifest is on the status screen (civicrm/a/#/status). The Angular frame will load with no content.

The error can also be reproduced by visiting the API explorer and doing api.system.check. The output will be something like:

Error: DateTimeZone::__construct: Unknown or bad timezone (-14400)

After

Timezone data is converted from GMT offset in seconds to region string, as expected by related methods.

Technical Details

Nothing noteworthy here.


@jackrabbithanna
Copy link
Contributor

This code looks good to me, and makes sense...I still have one D6 site I can look at :)

@universalhandle
Copy link
Contributor Author

Thanks for reviewing it, @jackrabbithanna. Now how the heck do we get it merged -- I always seem to have trouble with that part.

@jackrabbithanna
Copy link
Contributor

jackrabbithanna commented Jan 18, 2018

Merging #11534

@jackrabbithanna jackrabbithanna merged commit 9c9e0b2 into civicrm:master Jan 18, 2018
@universalhandle
Copy link
Contributor Author

Well, it helps to have commit rights. Thanks!

@universalhandle
Copy link
Contributor Author

Whoops, looks like we didn't get DST right. See #11800.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants