Project

General

Profile

Bug #3542

Psych dumps the timezone offset incorrectly at Newfoundland

Added by akr (Akira Tanaka) about 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
Backport:
[ruby-core:31064]

Description

=begin
Psych dumps the timezone offset incorrectly at Newfoundland.

% TZ=Canada/Newfoundland date '+%z'
-0230
% TZ=Canada/Newfoundland ./ruby -rpsych -e 't = Time.now; p t, Psych.dump(t)'
2010-07-06 00:13:03 -0230
"--- 2010-07-06 00:13:03.676510668 -03:30\n"
% ./ruby -v
ruby 1.9.3dev (2010-07-06 trunk 28554) [i686-linux]

The timezone offset should be -02:30 but psych outputs -03:30.
--
Tanaka Akira
=end

History

#1

Updated by Anonymous about 9 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r28558.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Also available in: Atom PDF