summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-02-13 15:12:14 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-02-13 15:12:14 +0900
commit849087ccb1e0f7ec2a3c018f9aeb6b462c971893 (patch)
tree270c918671f186336b7a5c5af35ca67bf96f00bc
parentf313514563853f1ee623135c2959df2b518ee755 (diff)
Apply zone offset to the last modified time
-rw-r--r--tool/lib/vcs.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index 857b7928a4..650f275250 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -195,6 +195,7 @@ class VCS
rescue ArgumentError
modified = Time.utc(*$~[1..6]) + $7.to_i * 3600 + $8.to_i * 60
end
+ modified = modified.getlocal(@zone)
end
return last, changed, modified, *rest
end