
Security News
VulnCon 2025: NVD Scraps Industry Consortium Plan, Raising Questions About Reform
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
detect_timezone_rails
Advanced tools
This is a simple gem which bundles jstimezonedetect and my own jquery plugin for it
NOTE: There is no dependency on jquery, so you can also use this to simply bundle jstimezonedetect.
In your Gemfile:
gem 'detect_timezone_rails'
Require detect_timezone and jquery.detect_timezone in your Javascript manifest (i.e. application.js)
//= require detect_timezone
//= require jquery.detect_timezone
Then some where else, wire it up using the plugin (remember to require jquery as well for the plugin)
$(document).ready(function(){
$('#your_input_id').set_timezone();
});
If you are using the standard rails form helpers to generate a timezone select, you may pass the
format
option when calling set_timezone
, to return only the city name:
$(document).ready(function(){
$('#your_input_id').set_timezone({format: 'city'});
})
Requires Rails 3.1+.
Provided under the Do Whatever You Want With This Code License.
FAQs
Unknown package
We found that detect_timezone_rails 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
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.
Product
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.