Skip to content

Ruby Version - necessary for tzf gem #41

@alterisian

Description

@alterisian

We're using the tzf gem to establish who is in the current timezone when the mob is active.

And also the idea, would be for the next timezone too.

I guess there's two aspects to the problem. Until now, a version has not mattered.
Now we find some later versions do not work, and some earlier versions are preferred.
We have a .ruby-version file in the repo now, and this needs to be set to the version that does work for this gem.
(My understanding is that if we have this, then we do not need the one in the Gemfile - happy to be corrected though).

Ruby 3.0.2 seems to work on Ubuntu 22, with rbenv.
I think myself and @Animesh-Ghosh confirmed this on codespaces.
However, when @Georgy5 and @mmiy55 tried the version was still going to 3.1.4
(We're unsure if this is because codespaces was started in the main branch.)
TODO-check with .ruby-version set to 3.0.2 that codespaces does not load 3.1.4

Important to get this feature branch, merged in asap, then we do not have the confusion problem at least.
(Maybe generally we try to work on main unless there's a production server involved, but a branch could be considered max a 2 week lifespan?)

In our exploring of timezones I've found https://timeanddate.com to be the best site. It also has an api we could use as an alternative: https://www.timeanddate.com/services/api/

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