B
Bill Seitz
I've inherited some Java code (plus stuff in other languages), and I'm
not a Java guru.
I just discovered some messed-up behavior of the existing code.
A month back I realized that the server (RedHat) clock was set to CST,
which was not what I wanted. So I changed the system clock and
hardware clock to EST. Data which was getting stuffed into PostgreSQL
by the Java code had the right zone timestamp on it.
But I was digging in more detail into the code the other day, and it
seemed like the data was off by an hour. And when I looked at a log
file that the code was writing, I saw all its timestamps labelled as
CST!
I couldn't find any timezone objects in the code, nor any config stuff
that would explain this behavior.
Could someone give me a hint as to what to look for? (I'll worry next
about the timezone params getting passed to the db insert, but for now
I think just getting the Java code to "think" in the same timezone as
the rest of the server would be nice...)
thx
Bill Seitz
http://webseitz.fluxent.com/wiki
not a Java guru.
I just discovered some messed-up behavior of the existing code.
A month back I realized that the server (RedHat) clock was set to CST,
which was not what I wanted. So I changed the system clock and
hardware clock to EST. Data which was getting stuffed into PostgreSQL
by the Java code had the right zone timestamp on it.
But I was digging in more detail into the code the other day, and it
seemed like the data was off by an hour. And when I looked at a log
file that the code was writing, I saw all its timestamps labelled as
CST!
I couldn't find any timezone objects in the code, nor any config stuff
that would explain this behavior.
Could someone give me a hint as to what to look for? (I'll worry next
about the timezone params getting passed to the db insert, but for now
I think just getting the Java code to "think" in the same timezone as
the rest of the server would be nice...)
thx
Bill Seitz
http://webseitz.fluxent.com/wiki