summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2023-04-27 23:50:50 -0600
committerDan Allen <dan.j.allen@gmail.com>2023-04-28 01:01:00 -0600
commit0a192b3ef2da801f569df51f64d5276911e5c425 (patch)
treeffb8c08bb3137dc123446d639b3d7008bbc311ef /lib
parent2320fc3191b069c21b7a74535ea61e7e35508a14 (diff)
remove outdated workaround for JRuby 9.1
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor/load.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/asciidoctor/load.rb b/lib/asciidoctor/load.rb
index 8c5f40c9..541128fc 100644
--- a/lib/asciidoctor/load.rb
+++ b/lib/asciidoctor/load.rb
@@ -55,8 +55,7 @@ module Asciidoctor
end
if ::File === input
- # File#mtime on JRuby 9.1 for Windows doesn't honor TZ environment variable; see https://github.com/jruby/jruby/issues/6659
- options[:input_mtime] = RUBY_ENGINE == 'jruby' ? (::Time.at input.mtime.to_i) : input.mtime
+ options[:input_mtime] = input.mtime
# NOTE defer setting infile and indir until we get a better sense of their purpose
# TODO cli checks if input path can be read and is file, but might want to add check to API too
attrs['docfile'] = input_path = ::File.absolute_path input.path