Forum: Ruby-core [ruby-trunk - Bug #8226][Open] incorrect timezone offset under Solaris 11 x64

1484e8f65fbcb41f06a9122812718ed0?d=identicon&s=25 groenveld@acm.org (John Groenveld) (Guest)
on 2013-04-06 05:21
(Received via mailing list)
Issue #8226 has been reported by groenveld@acm.org (John Groenveld).

----------------------------------------
Bug #8226: incorrect timezone offset under Solaris 11 x64
https://bugs.ruby-lang.org/issues/8226

Author: groenveld@acm.org (John Groenveld)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-solaris2.11]


US/Eastern is GMT-4, not GMT+4.
DateTime has it back asswards.
I can reproduce with ruby-2.0.0 as well.

$ env
PATH=/opt/apache2/ruby-1.9.3/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/solarisstudio12.3/bin
ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-solaris2.11]
$ cat date.rb
require 'date'
require 'time'

datetime=DateTime.now.strftime("%a %b %e %T %z %Y")
puts datetime
$ env
PATH=/opt/apache2/ruby-1.9.3/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/solarisstudio12.3/bin
TZ=US/Eastern ruby date.rb
Fri Apr  5 23:13:22 +04:00 2013
$ env
PATH=/opt/apache2/ruby-1.9.3/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/solarisstudio12.3/bin
TZ=US/Eastern date +"%a %b %e %T %z %Y"
Fri Apr  5 23:15:30 -0400 2013
1484e8f65fbcb41f06a9122812718ed0?d=identicon&s=25 groenveld@acm.org (John Groenveld) (Guest)
on 2013-04-07 00:26
(Received via mailing list)
Issue #8226 has been updated by groenveld@acm.org (John Groenveld).


I cannot reproduce with 2.1.0dev from Git.
$ /opt/apache2/ruby-2.1.0/bin/ruby -v
ruby 2.1.0dev (2013-04-07 trunk 40170) [x86_64-solaris2.11]
$ env TZ=US/Eastern /opt/apache2/ruby-2.1.0/bin/ruby date.rb
Sat Apr  6 18:25:07 -0400 2013

John
groenveld@acm.org
----------------------------------------
Bug #8226: incorrect timezone offset under Solaris 11 x64
https://bugs.ruby-lang.org/issues/8226#change-38317

Author: groenveld@acm.org (John Groenveld)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-solaris2.11]


US/Eastern is GMT-4, not GMT+4.
DateTime has it back asswards.
I can reproduce with ruby-2.0.0 as well.

$ env
PATH=/opt/apache2/ruby-1.9.3/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/solarisstudio12.3/bin
ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-solaris2.11]
$ cat date.rb
require 'date'
require 'time'

datetime=DateTime.now.strftime("%a %b %e %T %z %Y")
puts datetime
$ env
PATH=/opt/apache2/ruby-1.9.3/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/solarisstudio12.3/bin
TZ=US/Eastern ruby date.rb
Fri Apr  5 23:13:22 +04:00 2013
$ env
PATH=/opt/apache2/ruby-1.9.3/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/solarisstudio12.3/bin
TZ=US/Eastern date +"%a %b %e %T %z %Y"
Fri Apr  5 23:15:30 -0400 2013
666b4e17b4bb0e2d999037a25f65a7cb?d=identicon&s=25 Heesob Park (phasis)
on 2013-04-07 08:12
(Received via mailing list)
Issue #8226 has been updated by phasis68 (Heesob Park).


This bug is a duplicate of bug #7868.
It was already fixed and backported to 2.0.0.
----------------------------------------
Bug #8226: incorrect timezone offset under Solaris 11 x64
https://bugs.ruby-lang.org/issues/8226#change-38326

Author: groenveld@acm.org (John Groenveld)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-solaris2.11]


US/Eastern is GMT-4, not GMT+4.
DateTime has it back asswards.
I can reproduce with ruby-2.0.0 as well.

$ env
PATH=/opt/apache2/ruby-1.9.3/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/solarisstudio12.3/bin
ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-solaris2.11]
$ cat date.rb
require 'date'
require 'time'

datetime=DateTime.now.strftime("%a %b %e %T %z %Y")
puts datetime
$ env
PATH=/opt/apache2/ruby-1.9.3/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/solarisstudio12.3/bin
TZ=US/Eastern ruby date.rb
Fri Apr  5 23:13:22 +04:00 2013
$ env
PATH=/opt/apache2/ruby-1.9.3/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/solarisstudio12.3/bin
TZ=US/Eastern date +"%a %b %e %T %z %Y"
Fri Apr  5 23:15:30 -0400 2013
1484e8f65fbcb41f06a9122812718ed0?d=identicon&s=25 groenveld@acm.org (John Groenveld) (Guest)
on 2013-04-08 14:57
(Received via mailing list)
Issue #8226 has been updated by groenveld@acm.org (John Groenveld).


phasis68 (Heesob Park) wrote:
> This bug is a duplicate of bug #7868.
> It was already fixed and backported to 2.0.0.

Thanks!
John
groenveld@acm.org
----------------------------------------
Bug #8226: incorrect timezone offset under Solaris 11 x64
https://bugs.ruby-lang.org/issues/8226#change-38353

Author: groenveld@acm.org (John Groenveld)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-solaris2.11]


US/Eastern is GMT-4, not GMT+4.
DateTime has it back asswards.
I can reproduce with ruby-2.0.0 as well.

$ env
PATH=/opt/apache2/ruby-1.9.3/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/solarisstudio12.3/bin
ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-solaris2.11]
$ cat date.rb
require 'date'
require 'time'

datetime=DateTime.now.strftime("%a %b %e %T %z %Y")
puts datetime
$ env
PATH=/opt/apache2/ruby-1.9.3/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/solarisstudio12.3/bin
TZ=US/Eastern ruby date.rb
Fri Apr  5 23:13:22 +04:00 2013
$ env
PATH=/opt/apache2/ruby-1.9.3/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/solarisstudio12.3/bin
TZ=US/Eastern date +"%a %b %e %T %z %Y"
Fri Apr  5 23:15:30 -0400 2013
9361878d459f1709feec780518946ee5?d=identicon&s=25 naruse (Yui NARUSE) (Guest)
on 2013-04-08 19:23
(Received via mailing list)
Issue #8226 has been updated by naruse (Yui NARUSE).

Status changed from Open to Closed


----------------------------------------
Bug #8226: incorrect timezone offset under Solaris 11 x64
https://bugs.ruby-lang.org/issues/8226#change-38366

Author: groenveld@acm.org (John Groenveld)
Status: Closed
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-solaris2.11]


US/Eastern is GMT-4, not GMT+4.
DateTime has it back asswards.
I can reproduce with ruby-2.0.0 as well.

$ env
PATH=/opt/apache2/ruby-1.9.3/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/solarisstudio12.3/bin
ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-solaris2.11]
$ cat date.rb
require 'date'
require 'time'

datetime=DateTime.now.strftime("%a %b %e %T %z %Y")
puts datetime
$ env
PATH=/opt/apache2/ruby-1.9.3/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/solarisstudio12.3/bin
TZ=US/Eastern ruby date.rb
Fri Apr  5 23:13:22 +04:00 2013
$ env
PATH=/opt/apache2/ruby-1.9.3/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/solarisstudio12.3/bin
TZ=US/Eastern date +"%a %b %e %T %z %Y"
Fri Apr  5 23:15:30 -0400 2013
This topic is locked and can not be replied to.