Comments (7)
The warning message is coming from Bundler (rubygems/bundler#5003). It is not an error and can be ignored.
When you create a new Ruby on Rails application, a Gemfile
is created including the following line that triggers the message:
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
The purpose of this line is to include the tzinfo-data gem in the bundle on Windows to act as a source of time zone data. This gem is unnecessary on Ubuntu (and Unix-based systems in general) because the system includes time zone data that can be read directly by tzinfo.
If you want to get rid of the warning message you can do one of the following:
- Remove the
platforms
option from thegem 'tzinfo-data'
line in theGemfile
(and runbundle update
). This will cause tzinfo to use tzinfo-data as its data source on all platforms instead of using the system time zone data. - Remove the
gem 'tzinfo-data'
line from theGemfile
. This will cause tzinfo to always try and use the system time zone data. ATZInfo::DataSourceNotFound
exception will be raised if you try and run your app on Windows. - Run
bundle lock --add-platform mingw, mswin, x64_mingw, jruby
to add mingw, mswin, x64_mingw, and jruby to the list of platforms Bundler will include in the bundle. - Run
bundle config --local disable_platform_warnings true
to silence the warnings (requires bundler >= 1.17.0). Thanks for @mxhold for this suggestion.
Each of these options would need to be carried out for each Rails application you create.
You can also run bundle config disable_platform_warnings true
to disable the warning messages for the current user.
from tzinfo-data.
@cronwel I'm the author of tzinfo and tzinfo-data, so that's why I know how they can be used. The Gemfile
syntax and bundler
command are documented on the Bundler documentation site.
from tzinfo-data.
Just adding that an additional way to silence this warning is by enabling the disable_platform_warnings
option for Bundler (available in versions >=1.17.0) by running:
bundle config --local disable_platform_warnings true
This will silence any platform warnings in the context of the current app. If you leave off the --local
option, the warnings will be silenced globally for the current machine.
from tzinfo-data.
Thank you philr, I was wondering( and I am a new to programming) how did you learn that? I see lots off folks know great things (like you in this post), but how did you acquire that knowledge? I hope to learn how to learn when it comes to programming. Any advice would be greatly appreciated.
from tzinfo-data.
It's good to know that this is not an error, thanks for help.
from tzinfo-data.
I read philir's answer, and thank you. It is nice to know that it is not an error message, but I am no longer able to (I am sorry if this is worded badly) program in the terminal anymore. My username and the '$' and the name of the directory I am in do not show up. I can type in the line and hit enter, but it is more like I am writing a paper now. No program is executing. I have tried exiting and reopening the terminal and running the program again, but it is always the same output.
update
I closed and reopened the terminal. This time I did not get the notification at the end when the program executed, but I still am having the typing issue.
from tzinfo-data.
I have the pros too, I dont know how to fix it . so sad ...
from tzinfo-data.
Related Issues (18)
- TZInfo::AmbiguousTime: 1895-12-31 23:59:59 UTC is an ambiguous local time. (Asia/Taipei) HOT 3
- test failure HOT 8
- Invalid result when formatting time zone as hour and minute offset from UTC HOT 1
- Do I need this gem to be enabled if I am running my app under Linux? HOT 1
- ar
- cant update tzinfo-data HOT 5
- Thank you! HOT 2
- Deprecated time zones. HOT 4
- Supporting SystemV time zones HOT 4
- GitHub Pages website out of date HOT 2
- America/Montreal is missing from zone.tab HOT 5
- Invalid DST timestamp for America/Santiago time zone. HOT 2
- Kazakhstan TZ change HOT 7
- tzinfo-data dependency unresolvable against tzinfo 0.3 HOT 2
- Hitting TZInfo::DataSourceNotFound: No timezone data source could be found. with a fresh install of rail 4.1.0 HOT 18
- 2015f is out HOT 6
- No source of timezone data could be found. (TZInfo::DataSourceNotFound) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tzinfo-data.