Skip to content

[FIX] Change 1.week to create 1 week durations instead of 7 days durations. - #24762

Merged
pixeltrix merged 1 commit into
rails:masterfrom
Envek:solid_durations_2
Apr 29, 2016
Merged

pixeltrix merged 1 commit into
rails:masterfrom
Envek:solid_durations_2

Conversation

@Envek

@Envek Envek commented Apr 28, 2016

Copy link
Copy Markdown
Contributor

Retry of #22806.

Fixes regression with datatype conversions when doing math with durations and times found by @jeremy at #22806 (comment) with solution proposed by @pixeltrix at #22806 (comment)

Test to prevent such regression in future is included.

r? @jeremy
/cc @pixeltrix

This is just to remove astonishment from getting `3600 seconds` from typing `1.hour`.
@vipulnsward

Copy link
Copy Markdown
Member

This fixes build failures.

@pixeltrix

Copy link
Copy Markdown
Contributor

@Envek thanks for responding quickly 👍

jeremy added a commit that referenced this pull request Apr 29, 2016
Use the updated changelog from the first merge: 7254517

References #22806, #24762.

[ci skip]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants