Time timezone bug on Ubuntu

My apologies for most likely posting this in the wrong place, but after
spending 15 minutes, I
honestly couldn’t figure out proper procedure for posting a bug.

The following code produces different results in cruby and jruby:

puts Time.now

Cruby correctly identifies that my timezone is EST, while jruby produces
a UTC time.

I imagine the fault probably lies partly with my environment and partly
with jruby. I am using
jruby 1.1.1 with java 1.6.0_06, build 1.6.0_06-b02.

Any help would be greatly appreciated.

Cheers,
Jon


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Vladimir,

Thanks for the response. I do not have TZ defined as an environment
variable. Should I?

I have a second ubuntu system, which handles timezones properly. The
only differences that I am
aware of is that system is using jruby 1.1RC3, and a slightly different
jvm.

I’ll have to try jruby 1.1RC3 on the “broken” system.

Cheers,
Jon

Vladimir S. wrote:

expected though…


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Jon,

The link to our issue tracker:

http://jira.codehaus.org/browse/JRUBY

You should register there, and the follow the " Create a new issue in
project JRuby" link at the top.

I’m on Ubuntu too, and with non-UTC timezone. Time.now works for me as
expected though…
I wonder what is the difference between our systems. Do you have ‘TZ’
defined by any chance?

Thanks,
–Vladimir

On Tue, May 20, 2008 at 9:06 PM, Jon B. [email protected] wrote:

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email