adzap / timeliness

Fast date/time parsing for the control freak.
http://github.com/adzap/timeliness
MIT License
224 stars 27 forks source link

Store format_set in a threadsafe way #23

Closed andruby closed 5 years ago

andruby commented 8 years ago

This allows to safely use Timeliness.use_us_formats and Timeliness.use_euro_formats in threads.

Closes #21.

timdiggins commented 5 years ago

[significant time elapses...]

@tarmo are you thinking of something like this https://github.com/timdiggins/timeliness/commit/dd8d6b3b24d62911d4878be596a2da6eb1a3d87a ?

@andruby do you want to add this to your PR? if not I'll create a new one.

tarmo commented 5 years ago

@timdiggins yes, exactly that

timdiggins commented 5 years ago

Ok @tarmo -- have created a PR #27