1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

use UTC to use previous day in midnight

This commit is contained in:
NARUSE, Yui 2019-12-20 14:10:37 +09:00
parent e68999c82c
commit 216b62aa87

View file

@ -168,7 +168,7 @@ eom
orig_data = File.read(File.join(wwwdir, filename)) orig_data = File.read(File.join(wwwdir, filename))
data = orig_data.dup data = orig_data.dup
date = Time.now date = Time.now.utc # use utc to use previous day in midnight
entry = <<eom entry = <<eom
- version: #{ver} - version: #{ver}
date: #{date.strftime("%Y-%m-%d")} date: #{date.strftime("%Y-%m-%d")}
@ -233,7 +233,7 @@ end
def main def main
if ARGV.size != 2 if ARGV.size != 2
STDERR.puts "usage: format-release <dir-of-w.r-l.o> <output-of-make-snapshot>" STDERR.puts "usage: format-release <dir-of-w.r-l.o> <version>"
exit exit
end end
wwwdir = ARGV.shift wwwdir = ARGV.shift