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-19220] Support timezone object argument to Time.{at,new} and Time#{getlocal,localtime} (#3740) #3786

Merged
merged 22 commits into from
Feb 10, 2025

Conversation

graalvmbot
Copy link
Collaborator

No description provided.

rwstauner and others added 22 commits February 6, 2025 20:10
…localtime}

closes #1717

For compatibility with https://bugs.ruby-lang.org/issues/14850

Co-authored-by: Manef Zahra <[email protected]>
Co-authored-by: Patrick Lin <[email protected]>
Expected TypeError ((?-mix:can't convert \w+ into an exact number))
but got: TypeError (wrong argument type Object (expected Integer))
> Expected TypeError ((?-mix:can't convert \w+ into an exact number))
> but got: TypeError (wrong argument type Object (expected Integer))

close enough
In CRuby this spec passes because it is a Time-Like object (Time::tm)
that defines to_time.
We are using an actual Time object here so we need the method
for the spec to pass.
…stance of Time and take into account #utc_offset
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Feb 6, 2025
@graalvmbot graalvmbot closed this Feb 10, 2025
@graalvmbot graalvmbot merged commit 2e1acf1 into master Feb 10, 2025
25 of 27 checks passed
@graalvmbot graalvmbot deleted the timezone-arg branch February 10, 2025 15:12
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.

4 participants