mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use UTC for file2lastrev timezone
02155da7ba
got a claim about sacrificing ability to compare arbitrary `RUBY_DESCRIPTION`s without converting timezones. Because most of the people would be familiar with timezone conversion with UTC but it'd be harder when it comes to JST, this commit just changes the timezone inf42588f754
to UTC. Another bonus in using UTC is that we can use a shorter variant of ISO 8601 format like "2019-06-10T14:26:24Z" (the last Z part).
This commit is contained in:
parent
02155da7ba
commit
f0bfa71ab3
1 changed files with 2 additions and 2 deletions
|
@ -75,10 +75,10 @@ vcs = nil
|
|||
"#define RUBY_LAST_COMMIT_TITLE #{title.dump}"
|
||||
end,
|
||||
if modified
|
||||
modified.strftime(<<TIME)
|
||||
modified.utc.strftime(<<TIME)
|
||||
#if defined(RUBY_PATCHLEVEL) && (RUBY_PATCHLEVEL == -1)
|
||||
#undef RUBY_RELEASE_DATE
|
||||
#define RUBY_RELEASE_DATE "%FT%T%:z"
|
||||
#define RUBY_RELEASE_DATE "%FT%TZ"
|
||||
#endif
|
||||
TIME
|
||||
end,
|
||||
|
|
Loading…
Add table
Reference in a new issue