TZinfo
local_time
Our great sponsors
TZinfo | local_time | |
---|---|---|
5 | 3 | |
354 | 1,871 | |
0.3% | 0.6% | |
6.0 | 6.9 | |
3 months ago | 30 days ago | |
Ruby | CoffeeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
TZinfo
-
Hacker News top posts: Jul 22, 2022
Arbitrary file execution in TZinfo\ (15 comments)
- CVE-2022-31163: Arbitrary file execution in TZinfo (Ruby)
-
CVE-2022-31163: Arbitrary file execution through TZinfo (Ruby)
For everyone who is panicking about this - to be affected, you either need to use a really old version of tzinfo (0.3.60 and earlier), have the tzinfo-data gem installed, or explicitly set TZInfo::DataSource to DataSources::RubyDataSource.
Otherwise, by default, tzinfo will use TZInfo::ZoneinfoDataSource, which does not seem to be affected.
https://github.com/tzinfo/tzinfo/blob/d9b289e1be30d29a2cb23b...
https://github.com/tzinfo/tzinfo/commit/b98c32efd61289fe6f00...
local_time
-
Yet another timezone question
you might find https://github.com/basecamp/local_time more appealing, if possible.
-
How do I Make My created_at Timestamps set to the User timezone?
The local_time package works well for me.
-
How to detect user timezone in larval? I'm using moment js, but sometimes it passes invalid timezone to laravel.
2) Format timestamps on the client side - you could look at something like [`local_time`](https://github.com/basecamp/local_time) for inspiration.
What are some alternatives?
Chronic - Chronic is a pure Ruby natural language date parser.
business_time - Support for doing time math in business hours and days
ByStar - Lets you find ActiveRecord + Mongoid objects by year, month, fortnight, week and more!
groupdate - The simplest way to group temporal data
fugit - time tools (cron, parsing, durations, ...) for Ruby, rufus-scheduler, and flor
Recurrence - A simple library that handles recurring events.
validates_timeliness - Date and time validation plugin for ActiveModel and Rails. Supports multiple ORMs and allows custom date/time formats.