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

Time#change doesn't allow to change offset #28723

Closed
abotalov opened this issue Apr 10, 2017 · 1 comment
Closed

Time#change doesn't allow to change offset #28723

abotalov opened this issue Apr 10, 2017 · 1 comment

Comments

@abotalov
Copy link

abotalov commented Apr 10, 2017

Steps to reproduce

Time.now.change(offset: 0)
=> 2017-04-10 17:35:53 +0300
DateTime.now.change(offset: 0)
=> Mon, 10 Apr 2017 17:35:57 +0000

Expected behavior

Time#change should have :offset option just like DateTime.

Time.now.change(offset: 0)
=> 2017-04-10 17:35:53 +0000

Actual behavior

Time#change doesn't have :offset option.

System configuration

Rails version:
4.2

Ruby version:
2.2

@maclover7
Copy link
Contributor

cc @pixeltrix

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

No branches or pull requests

2 participants