Project

General

Profile

Actions

Backport #6656

closed

Time#strftime('%Z') should return 'UTC' instead of 'GMT'

Added by stomar (Marcus Stollsteimer) almost 12 years ago. Updated almost 5 years ago.

Status:
Closed
Assignee:
-
[ruby-core:45916]

Description

=begin
Time#strftime('%Z') should return 'UTC' instead of 'GMT',
as in Time#to_s and Time#zone. This is also the behaviour of Ruby 1.9.3.

irb(main):001:0> Time.utc(2012, 6, 27).to_s
=> "Wed Jun 27 00:00:00 UTC 2012"
irb(main):002:0> Time.utc(2012, 6, 27).zone
=> "UTC"
irb(main):003:0> Time.utc(2012, 6, 27).strftime('%Z')
=> "GMT"
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0