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

[GR-62586] Fix transient Time.new specs #3803

Merged
merged 2 commits into from
Mar 1, 2025

Conversation

graalvmbot
Copy link
Collaborator

No description provided.

Fix building a new Time instance with naively increased hours by 1:

```ruby
Time.new(..., t.hour + 1, ...)
```

It leads to hours overflowing (becoming greater than 23) and transient failures like the following ones:

```
1)
Time.now Timezone object returned value by #utc_to_local and #local_to_utc methods could be Time instance ERROR
ArgumentError: argument out of range

2)
Time.now Timezone object returned value by #utc_to_local and #local_to_utc methods could be Time subclass instance ERROR
ArgumentError: argument out of range
```
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Mar 1, 2025
@graalvmbot graalvmbot closed this Mar 1, 2025
@graalvmbot graalvmbot deleted the ak/fix-transient-time-new-specs branch March 1, 2025 12:57
@graalvmbot graalvmbot merged commit b2a1986 into master Mar 1, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants