Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Time.new timezone changes for 3.2-3.4 #8736

@headius

Description

@headius

There appears to be some new specs for Time.new handling of timezones, possibly new behavior for Ruby 3.2-3.4. We will address these after the release of JRuby 10.

Time.new with a timezone argument :in keyword argument allows omitting minor arguments FAILED
Time.new with a timezone argument Time.new with a String argument parses an ISO-8601 like format FAILED
Time.new with a timezone argument Time.new with a String argument accepts precision keyword argument and truncates specified digits of sub-second part FAILED
Time.new with a timezone argument Time.new with a String argument converts precision keyword argument into Integer if is not nil FAILED
Time.new with a timezone argument Time.new with a String argument raises ArgumentError if date/time parts values are not valid FAILED
Time.new with a timezone argument Time.new with a String argument raises ArgumentError if utc offset parts are not valid FAILED
Time.new with a timezone argument Time.new with a String argument raises ArgumentError if string doesn't start with year ERROR
Time.new with a timezone argument Time.new with a String argument raises ArgumentError when there are leading space characters ERROR
Time.new with a timezone argument Time.new with a String argument raises ArgumentError when there are trailing whitespaces ERROR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions