<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=823052805-09092006><FONT face=Arial size=2>OK, I admit it: this
is a slightly off-topic question, but it's about an issue which I imagine might
have affected many OpenCms developers.</FONT></SPAN></DIV>
<DIV><SPAN class=823052805-09092006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=823052805-09092006><FONT face=Arial size=2>I'm getting
inconstent date formatting results on my </FONT></SPAN><SPAN
class=823052805-09092006><FONT face=Arial size=2>UK-based Windows development
box and my US-based Linux/CentOS server running OpenCms. It seems that the
Linux box is ignoring daylight savings time settings for a
Locale.</FONT></SPAN></DIV>
<DIV><SPAN class=823052805-09092006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=823052805-09092006><FONT face=Arial size=2>// Test using
instance in time which is largely arbitrary but occurs</FONT></SPAN></DIV>
<DIV><SPAN class=823052805-09092006><FONT face=Arial size=2>// during UK's
daylight savings time:</FONT></SPAN></DIV>
<DIV><SPAN class=823052805-09092006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=823052805-09092006><FONT face=Arial size=2>SimpleDateFormat sdf
= new SimpleDateFormat("HH:mm z", Locale.UK);</FONT></SPAN></DIV>
<DIV><SPAN class=823052805-09092006><FONT face=Arial size=2>sdf.format(new
Date(1157782813701));</FONT></SPAN></DIV>
<DIV><SPAN class=823052805-09092006><FONT face=Arial size=2></FONT></SPAN><SPAN
class=823052805-09092006><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=823052805-09092006><FONT face=Arial size=2>From the US machine,
I get a time in GMT; on the UK machine, I get a time in BST, which is the GMT
daylight savings time zone. BST is the correct result for this Date
value. Both machines are using JDK 1.5.0_08, and as it happens the system
clocks on the two machines are roughly the same according to new
Date().getTime().</FONT></SPAN></DIV>
<DIV><SPAN class=823052805-09092006><FONT face=Arial size=2></FONT></SPAN><SPAN
class=823052805-09092006><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=823052805-09092006><FONT face=Arial size=2>Anyone got any
ideas?</FONT></SPAN></DIV>
<DIV><SPAN class=823052805-09092006></SPAN> </DIV>
<DIV><SPAN class=823052805-09092006><FONT face=Arial
size=2>Jon</FONT></SPAN></DIV></BODY></HTML>