Github Pages 04. 타임존 관리
by jennysgap$ bundle exec jekyll serve --draft Configuration file: D:/github/[깃허브ID].github.io/_config.yml Dependency Error: Yikes! It looks like you don't have tzinfo or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. If you've run Jekyll with `bundle exec`, ensure that you have included the tzinfo gem in your Gemfile as well. The full error message from Ruby is: 'cannot load such file -- tzinfo' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/! jekyll 4.0.0 | Error: tzinfo
윈도우즈에서는 루비 인터프리터가 IANA 타임존 정보를 처리하는데 필요한 정보 원천이 없기 때문에, 대신 환경변수 TZ
를 사용하며 그 기본값은 UTC/GMT 00:00 입니다.
Jekyll 은 공식적으로 인정된 IANA 타임존 데이터베이스
에 근거하여 타임존을 자체적으로 설정하는 루비 젬을 사용합니다. Jekyll v3.4 또는 그 이상의 버전에서 새 블로그를 생성할 때, 기본적으로 Gemfile
에 다음과 같은 내용이 추가되며, 이전에 생성된 사이트에서는 Gemfile
을 수정할 필요가 있습니다:
Gemfile 파일에 내용 추가
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo' gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
References
반응형
블로그의 정보
jennysgap
jennysgap