Skip to content

Different results between Rails 6.0 and 6.1, tzinfo 2? #12

Description

@pjb3

I am working on upgrading from Rails 6.0 to Rails 6.1. I am getting different results when I do:

$ bin/rails c
Loading development environment (Rails 6.0.6.1)
>> require "solareventcalculator"
=> true
>> SolarEventCalculator.new(Date.parse("2022-05-02"), 39.275051, -76.647482).compute_official_sunset("US/Eastern")
=> Mon, 02 May 2022 20:00:00 -0400
Loading development environment (Rails 6.1.7.6)
>> require "solareventcalculator"
=> true
>> SolarEventCalculator.new(Date.parse("2022-05-02"), 39.275051, -76.647482).compute_official_sunset("US/Eastern")
=> Mon, 02 May 2022 00:00:00 +0000

I did notice that in my Gemfile.lock, tzinfo got upgraded from 1.2.11 to 2.0.6, so that might be the real issue.

Anyone know how to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions