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

Wrong timezone calculated when using :host #12

Open
shanesmith opened this issue Jun 5, 2019 · 0 comments
Open

Wrong timezone calculated when using :host #12

shanesmith opened this issue Jun 5, 2019 · 0 comments

Comments

@shanesmith
Copy link

Setting config.timezone.value = :host calculates in inverse of the correct timezone.

For example I'm in Eastern Time which is currently -4 (due to DST), however the VM gets set to the Abu Dhabi zone which is +4.

Taking a look at the line below I see that the calculated timezone is in fact inversed on purpose, but even with the comment I can't tell why that might be.

@value = format('Etc/GMT%+d', -(Time.now.utc_offset / 3600))

For what it's worth I do get -4 when running Time.now.utc_offset / 3600 in Ruby

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

No branches or pull requests

1 participant