In Debian you can set the timezone with tzconfig. I don't know about the
other distributions. When I call TimeZone.getDefault().toString() it returns
the following:
java.util.SimpleTimeZone[
id=EST,
offset=-1800,
dstSavings=360,
useDaylight=true,
startY
Justin:
That should work, but I would have to do it in every program. I thought Java
was supposed to read that information from the computer. As far as I know
the JDK should get the default timezone from the computer it is running in.
What if I run the program in London, or California? Would I
"Spectron International, Inc." wrote:
>
> How do I change from Eastern Daylight Time to Eastern Standard time. As far
> as I know Calendar.getInstance() returns the default calendar information
> for the machine. Right now my Linux machine is EST but Java returns EDT. I
> though that by changing
How do I change from Eastern Daylight Time to Eastern Standard time. As far
as I know Calendar.getInstance() returns the default calendar information
for the machine. Right now my Linux machine is EST but Java returns EDT. I
though that by changing in in Linux it would change the JDK too. Is there
How do I change the daylight savings time. Is there an export I have to add.
My zone is EST but without daylight savings time. I changed in Linux but
Java still sees it the TimeZone.toString() returns the following:
java.util.SimpleTimeZone[
id=EST,
offset=-1800,
dstSavings=360,
u
Hi,
I'm using the glibc version of jdk1.1.7v1a on a RH 5.2
system with glibc 2.0.7.
When trying to run some programs, I'm getting this message:
java.lang.Error: dtz null
at java.util.TimeZone.getDefault(TimeZone.java:94)
at
at
at ObjectSerialization.main(ObjectS
screw up in other
ways. JDK 1.2 works much better in this respect.
regards
[ bryce ]
Feng-Cheng Chang wrote:
> I have a question about the timezone settings:
> My Linux box is using local CST time, but the java.lang.Calendar or
> java.lang.Date always report CDT...
>
I have the /etc/localtime link to /usr/share/zoneinfo/Asia/Taipei,
which is reported as CST under date command and the offset is GMT+8
(uh...confilict with /usr/share/zoneinfo/US/Central ??).
The GMT+8 is the TimeZone CTT. I'm so confused why the zoneinfo are different
under OS and java.
One
s) NT then is that NT sets
user.timezone to _my_ timezone instead of arbitrarily picking EST. Why
isn't Linux??
At 10:16 AM 4/15/99 -0500, Marius Schamschula wrote:
>Feng-Cheng,
>
>You beat me to the post. I've got a similar, related?, problem. I have
>two machines, both
Hello all,
I have a question about the timezone settings:
My Linux box is using local CST time, but the java.lang.Calendar or
java.lang.Date always report CDT...
Here is my program:
import java.lang.*;
import java.util.*;
public class TestCal {
public static void
gt; new Date()'. The reported time is one hour late. In Linux the CET is
> reported (I live in the Netherlands) as wanted but Java reports the UTC.
> How can I make my Java software report the localtime without making my
> code timezone depended (addind one hour is not a wanted solu
but Java reports the UTC.
> How can I make my Java software report the localtime without making my
> code timezone depended (addind one hour is not a wanted solution) ?
>
> Thanx in advance,
>
> Jeroen
--
Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363
Java software report the localtime without making my
> code timezone depended (addind one hour is not a wanted solution) ?
Look at java.util.TimeZone.
../Martin
(/bin/date) the date I see is corrent, but when I use in Java 'Data d =
new Date()'. The reported time is one hour late. In Linux the CET is
reported (I live in the Netherlands) as wanted but Java reports the UTC.
How can I make my Java software report the localtime without making my
code ti
ass DateTimeThingy
{
public static void main(String[] args) throws Exception
{
Calendarcalendar;
SimpleDateFormatdateformatter;
String systemDate;
TimeZone timeZ
Greetings Folks,
I have a question regarding the Calendar and TimeZone classes. When a
TimeZone object is instaniated and getDefault is called it returns GMT
time, and any calls for time are based on GMT. The machine is in Alaska
and the TZ information is set to Alaska Time.
Are we doing
16 matches
Mail list logo