diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-06-10 23:23:15 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-06-10 23:31:07 +0900 |
commit | f0bfa71ab3ce5f6045a39e503f6decbc9b3a7d3d (patch) | |
tree | bb183e7c9f32e7017fe8910243012b887e1c74f8 /tool | |
parent | 02155da7bad37bd1c8adadd486d2d16eac7af43b (diff) |
Use UTC for file2lastrev timezone
02155da7bad37bd1c8adadd486d2d16eac7af43b 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 f42588f754d5885ec30631e5008c383f3ef905d8 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).
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/file2lastrev.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb index c5d4c95f9b..090f2e981d 100755 --- a/tool/file2lastrev.rb +++ b/tool/file2lastrev.rb @@ -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, |