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:
parent
e68999c82c
commit
216b62aa87
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue