
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Automatically infer and set Time.zone
with each request. The available (and configurable)
strategies include:
current_user
(or anything accessible in the context of the controller)Add this line to your application's Gemfile:
gem 'auto_timezone'
And then execute:
$ bundle
Lastly, add this line to the top of your application.js
(it has no dependencies):
//= require auto_timezone
Without any additional configuration, your application should start honoring timezone by asking the browser for the offset from UTC time.
To install the auto_timezone.rb
configuration initializer, execute:
$ rails g auto_timezone:install
Check out the generated auto_timezone.rb
for more configuration settings.
Currently, the auto-inferred timezone will only take effect after the first pageload.
For the first pageload, you may want to set a more useful default timezone in application.rb
:
config.time_zone = 'Eastern Time (US & Canada)'
jsTimezoneDetect
strategygit checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that auto_timezone demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.