|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-bugs
[Xen-bugs] [Bug 394]  New: java 5 timezone issue 
| http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=394
           Summary: java 5 timezone issue
           Product: Xen
           Version: unstable
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Hypervisor
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: tedkaz@xxxxxxxxxxxxx
Time is not calculated properly by java 5 on a guest, the dom0 is fine. The domU
always gives UTC.
Test Code
import java.util.Date;
import java.util.TimeZone;
public class TimeTest {
    public static void main(String args[]) {
        long time = System.currentTimeMillis();
        String millis = Long.toString(time);
        Date date = new Date(time);
        System.out.println("Current time in milliseconds = " + millis + " => " +
 date.toString());
        System.out.println("Current time zone: " + 
TimeZone.getDefault().getID() );
    }
}
-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Xen-bugs mailing list
Xen-bugs@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-bugs
 | 
 
| <Prev in Thread] | Current Thread | [Next in Thread> |  | 
[Xen-bugs] [Bug 394]  New: java 5 timezone issue,
bugzilla-daemon <=
 |  |  | 
  
    |  |  |