From f8456e02c1068cd3ae7e553cbe4776124e8e1cb8 Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Wed, 30 Nov 2016 23:41:01 +0530 Subject: [PATCH] narrow it down to only Windows --- lib/jekyll.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/jekyll.rb b/lib/jekyll.rb index 75f6b250..25bbaa0a 100644 --- a/lib/jekyll.rb +++ b/lib/jekyll.rb @@ -119,7 +119,11 @@ module Jekyll # Returns nothing # rubocop:disable Style/AccessorMethodName def set_timezone(timezone) - ENV["TZ"] = Utils::Platforms.windows? ? Utils::WinTZ.calculate(timezone) : timezone + ENV["TZ"] = if Utils::Platforms.really_windows? + Utils::WinTZ.calculate(timezone) + else + timezone + end end # rubocop:enable Style/AccessorMethodName