简体   繁体   中英

Is tzinfo-data needed if the application will run only on Linux docker containers

Is tzinfo-data needed if the application will run only on Linux docker containers. Should the following need to be added to the Gemfile

Windows does not include zoneinfo files, so bundle the tzinfo-data gem

gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

When you create a new rails app, you get this message: 在此处输入图像描述 Basically, you can just remove gem tzifono-data from your Gemfile if you are running anything except windows, and run bundle update .

The tzinfo-data gem is not needed on Linux.

Here's a detailed answer https://github.com/tzinfo/tzinfo-data/issues/13#issuecomment-287174435

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM