Project

General

Profile

Actions

Bug #3542

closed

Psych dumps the timezone offset incorrectly at Newfoundland

Added by akr (Akira Tanaka) almost 14 years ago. Updated almost 13 years ago.

Status:
Closed
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

Actions

Also available in: Atom PDF

Like0
Like0