1
0
Fork 0
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 in f42588f754 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:
Takashi Kokubun 2019-06-10 23:23:15 +09:00
parent 02155da7ba
commit f0bfa71ab3
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -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,