Re: user.timezone property

2004-03-24 Thread Steven Augart
David Holmes wrote: [...] I fill in user.timezone during insertSystemProperties at the same time as all the other dynamic properties that have to be obtained from the OS: file encoding, user name, os name, current dir etc etc. Jikes RVM sets those in runrvm, a shell script that calls the actual C

Re: user.timezone property

2004-03-24 Thread Robert Lougher
This makes sense, yes. Now I know why I want to set it; my test program that calls TimeZone.getDefault().getDisplayName() always prints Greenwich Mean Time if I don't. Thanks for the information -- something I should do in JamVM as well. However, the above explains why I've never noticed the

Re: user.timezone property

2004-03-24 Thread Steven Augart
Robert Lougher wrote: This makes sense, yes. Now I know why I want to set it; my test program that calls TimeZone.getDefault().getDisplayName() always prints Greenwich Mean Time if I don't. Thanks for the information -- something I should do in JamVM as well. However, the above explains why

RE: user.timezone property

2004-03-24 Thread David Holmes
This makes sense, yes. Now I know why I want to set it; my test program that calls TimeZone.getDefault().getDisplayName() always prints Greenwich Mean Time if I don't. Our MAC OSX users suffer the same problem :-) OSX doesn't support the OSI extensions so I have no idea how to obtain the

Re: user.timezone property

2004-03-24 Thread Steven Augart
I assume your VM is implemented in C or C++, based on your discussion of the OSI extensions. In that case, how 'bout strftime() with the %Z format? If you set user.timezone to the string that strftime( ..., %Z, ...) generates, Classpath's java.util.TimeZone will do the right thing when it

user.timezone property

2004-03-23 Thread Steven Augart
I've noticed that more than one VM defines a user.timezone property. Does anyone know where this is officially documented? The string user.timezone does not appear anywhere in the Sun 1.4.2 API specification. I'm not sure whether we need to provide it, and if so, what the format should

RE: user.timezone property

2004-03-23 Thread David Holmes
Steven Augart writes: I've noticed that more than one VM defines a user.timezone property. Does anyone know where this is officially documented? The string user.timezone does not appear anywhere in the Sun 1.4.2 API specification. I'm not sure whether we need to provide it, and if so, what