TimeZone.getDefault is wrong if the System TimeZone is set to Rangoon

Hi,
Once the System TimeZone is set to Rangoon i.e (+6:30), TimeZone.getDefault returns a wrong timezone and corresponding timezone offset.
The code snippet with its output is given below.
Code is as below:
System.out.println("The default TimeZone is "+TimeZone.getDefault());
System.out.println("The TimeZoneOffset is "+(TimeZone.getDefault().getRawOffset())/(1000*60)+" minutes");
System.out.println(System.getProperty("user.timezone"));
Output:
The default TimeZone is java.util.SimpleTimeZone[id=Asia/Calcutta,offset=19800000,dstSavings=3600000,useDaylight=false,startYear=0,startMode=0,startMonth=0,startDay=0,startDayOfWeek=0,startTime=0,startTimeMode=0,endMode=0,endMonth=0,endDay=0,endDayOfWeek=0,endTime=0,endTimeMode=0]
The TimeZoneOffset is 330 minutes
Asia/Calcutta.
It would be great if somebody knows what exactly is going wrong. Pls help
Thank You

It looks like a bug in Java that was fixed in 1.4 sometime.
I tried your test using Windows XP and Java 1.4.2. I selected "Rangoon (+6:30)" as my time zone on the Windows Date and Time properties.
The output I got was:
The default TimeZone is sun.util.calendar.ZoneInfo[id="Asia/Rangoon",offset=2340
0000,dstSavings=0,useDaylight=false,transitions=5,lastRule=null]
The TimeZoneOffset is 390 minutes
Asia/RangoonI tried with JDK 1.3.1_09 and found it to behave erroneously (interpreted time zone as Asia/Calcutta).
Tim

Similar Messages

  • HT5312 My email associated with my iCloud ID has been deleted and my birthday is wrong in the system for the security question. Therefore, I can't delete my old iCloud ID in order to have my new ID on my phone.

    My email associated with my iCloud ID has been deleted and my birthday is wrong in the system for the security question. Therefore, I can't delete my old iCloud ID in order to have my new ID on my phone. HELP!

    If the old ID is yours, and if your current ID was created by editing the details of this old ID (rather than being an entirely new ID), go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • I am trying to download iTunes on my new desktop computer (Windows 7, 64 bit).  It starts installing, and then stops with the message- "The System Administrator has set policies to prevent this installation."  I am the sole user- please help.

    I am trying to download iTunes on my new desktop computer (Windows 7, 64 bit).  It starts installing, and then stops with the message- "The System Administrator has set policies to prevent this installation." This is a stand alone computer and I am the sole user.   Please help.

    This is a Microsoft Windows Issue.
    From a MS Support Engineer:
    "Hi,
    ·        Is the computer on a domain?
    ·        Is the issue isolated to only this software or you get the same error message with other software’s as well?
    Try the steps below and check if it helps.
    Step 1:
    Run the software setup file as an administrator and check if it helps.
    a. Right click on the setup file of the software that you are trying to install.
    b. Select “Run as administrator”.
    Step 2:
    Temporarily disable the antivirus software running on the computer and check if you are able to install the software.
    Disable antivirus software
    Warning:
    Antivirus software can help protect your computer against viruses and other security threats. In most cases, you shouldn't disable your antivirus software. If you have to temporarily disable it to install other software, you should re-enable it as soon as you're done. If you're connected to the Internet or a network while your antivirus software is disabled, your computer is vulnerable to attacks.
    Step 3:
    a. Click Start, type "Local Security Policy" (without quotes) and press enter.
    b. Click on Software Restriction Policies.
    c. In the right pane, double click on the "enforcement".
    d. Select “All users except local administrators”.
    e. Click Ok and restart the computer and check if the issue is fixed."

  • Error: the system administrator has set policies to prevent this installation

    While trying to sync my husband's new iPad 2 to our computer, I encountered the following problem.
    I currently have iTunes 10.1.1.4 installed on my computer but was told to update to the latest version of iTunes 10.2.2.
    After trying to do this, I received the following error message: The System Administrator has set policies to prevent this installation.
    After contacting Apple, Toshiba and Microsoft and following instructions from each of their tech support agents, I am still not able to uninstall iTunes as they all advised me to do.
    The latest error message I receive is: You do not have sufficient access to uninstall iTunes. Please contact your System Administrator.
    I am the administrator and am signed in as such. As you can imagine, I am quite frustrated.
    A solution to this problem would be greatly appreciated.

    I received the following error message: The System Administrator has set policies to prevent this installation.
    I'd try something relatively simple first. Download and save a fresh copy of the iTunes installer to your hard drive. (Don't run the install on line and don't start the install just yet.)
    http://www.apple.com/itunes/download/
    Now right-click the iTunesSetup.exe (or iTunes64Setup.exe) that you downloaded, and select "Run as administrator".
    Does that update go through any better?

  • HT1926 Everytime I try and install iTunes it says "the system administrator has set policies to prevent this installation".  does anyone know what this means?

    I am using my partners computer.  He has iTunes on his laptop but when I went to update iTunes, it said "the system administrator has set policies to prevent this installation".  I therefore deleted iTunes altogether thinking to reinstall the original iTunes and then upgrade it (i,e start from scratch) but to know avail.  Is this a problem with my laptop itself?  Or a problem with the internet settings?
    HELP PLEASE!!

    Let's try something relatively simple. Download and save a copy of the installer to your hard drive (don't run the install on line and don't start the install just yet):
    http://www.apple.com/itunes/download/
    Now right-click on the iTunesSetup.exe (or iTunes64Setup.exe) that you downloaded and select "Run as administrator".
    Does that go through any better for you?

  • Im trying to uninstall itunes because the newest version wont download.  But when i go to uninstall, it says "The system administrator has set policies to prevent this uninstallation"  Whats can i do to uninstall

    Im trying to uninstall itunes because the newest version wont download.  But when i go to uninstall, it says "The system administrator has set policies to prevent this uninstallation"  Whats can i do to uninstall

    Windows right?
    Likely your not the administor any more, the botnet is.
    Check on this site really quick if your part of a botnet
    http://botnetchecker.com/
    All clear? Hopefully. Backup your files to a external drive, cd or dvd, USB keye etc off your computer.
    Run the sfx file on this site and it will burn to a cd.
    http://www.avira.com/en/support-download-avira-antivir-rescue-system
    Next hit your BIO's key and set the cd to boot first, run the scanner and see what it pops up.
    If your all clear then create another Admin, transfer your files over from the first Admin.
    See if that works, eventually when your totally over to the new Admin, delete the old one.
    If you can't create a new Admin, find out who locked your machine down, like your parents or it's a school computer?
    Likely installed spyware or "nanyware" to watch you.
    Hope that works.

  • I get the error message: The System Administrator has set Policies to prevent this installation. What do I do?

    I get the error message: The System Administrator has set Policies to prevent this installation. What do I do?

    Have you read for possible solutions over in the "More Like This" thread over here?-----------------------> 

  • TS1424 When attempting to download iTunes I keep getting error The system administrator has set policies to prevent this installation.  This is home PC and I am administrator.  Any help is appreciated.

    When attempting to download iTunes I keep getting error The system administrator has set policies to prevent this installation.  This is a home PC and I am the administrator.  Any help would be appreciated.

    Hi PSpark!
    I have an article here that I believe will help you troubleshoot this issue a little further. That article can be found right here:
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • Trying to download itunes and keep getting message 'the system administrator has set policies to prevent this installation' and therefore cant download - any ideas

    trying to download itunes and keep getting message 'the system administrator has set policies to prevent this installation' and therefore cant download - any ideas

    Let's try something relatively simple. Download and save a copy of the installer to your hard drive (don't run the install on line and don't start the install just yet):
    http://www.apple.com/itunes/download/
    Now right-click on the iTunesSetup.exe (or iTunes64Setup.exe) that you downloaded and select "Run as administrator".
    Does that go through any better for you?

  • TS3212 The System Administrator has set policies to prevent this installation

    The System Administrator has set policies to prevent this installation

    The System Administrator has set policies to prevent this installation
    Let's try something relatively simple. Download and save a copy of the installer to your hard drive (don't run the install on line and don't start the install just yet):
    http://www.apple.com/itunes/download/
    Now right-click on the iTunesSetup.exe (or iTunes64Setup.exe) that you downloaded and select "Run as administrator".
    Does that go through any better for you?

  • The system administrator has set policies to prevent this installation

    when installing itunes on mums sony vaio with vista home edition. a message saying "the system administrator has set policies to prevent this installation" pops up not allowing the installation to continue. had a quick look on other forums and the general concensus is that the settings that need changing are deep in the technical parts of the computer which im not prepared to go to. has anyone else had any problems like this and is there an easy way to fix it!?

    We might as well try something fairly simple, just in case.
    Download a fresh copy of the itunes installer to the Vaio's hard drive. (Don't run the install online.)
    Latest iTunes Installer
    Now start the install by right-clicking on the iTunesSetup.exe file and selecting "run as administrator".
    Does that install go through any easier?

  • HT1925 Message after removing and trying to reinstall itunes 'The system administrator has set policies preventing this installation'. Can anybody help?

    After removing and reinstlling iTunes .....message reads 'the system administrator has set policies preventing this installation'

    Try the following user tip:
    "The administrator has set policies to prevent this installation" error messages when installing iTunes for Windows on Windows Vista and Windows 7 systems

  • Cannot install AIR application when the system date is set beyond 10/31/2017

    I created a native time-stamped installer for an AIR application. While testing the installer with different system dates, I noticed that the installer does not work when the system date is set beyond 10/31/2017. I tested the same with a self-signed certificate as well as a Verisign certificate and found the behaviour to be consistent. Why does the installer stop working after this date?

    Thanks very much for keeping this issue alive.
    Let me restate the issue:
    We have a AIR 2.0.4.13090 sidecar application. Installing the application for the very first time seems to work. Any uninstall or update after that runs into issues on the problematic Windows 7 64 bit machine. The installer logs all point the finger to Windows Installer having problems writing to the temp directory.
    We've gone through many, many things trying to resolve this, including resetting administrative access to the temp directory and flushing the temp directory out entirely. I'm reporting this news secondhand, so it's not possible for me to directly relate the exact measures taken, step-by-step. The ONLY thing that reliably worked for running and installing updates on this AIR application was the following:
    1) Create a new administrative level user.
    2) Log in with that user.
    3) Disable firewalls.
    4) Run the updater.
    5) Log back in as normal user, delete temporary user.
    if the user account created in step 1 is not deleted in step 5 and is used to attempt a further update or uninstall, it will fail. This seems to tell me that AIR is able to utilize the temp folder via Windows Installer correctly only once. After that, it dirties this directory somehow and is unable to use/write to it, and subsequent uninstalls/updates fail with error 0.
    Again, the failure all show msi issues writing to the temp directory. They result in an "Error 0" alert dialog in AIR.

  • How to determine the system color and set them for my app?

    Hi,
    I'd like to set the colors of my application to the system's colors. Especially the backgrounds of my JPanels, JButtons and so on should look like in the operating system. If you change the systems color scheme, my application looks really wierd with it's grey canvas an components and the border and menu of the window is displayed in the system's colors.
    any idea??
    koem

    The UIManager only seems to have control over
    awt-controls. All swing controls are not listed, when
    you try this:
            UIDefaults defaults =
    UIManager.getLookAndFeelDefaults();
    for(Iterator i = defaults.keySet().iterator();
    ator(); i.hasNext();)
    String name = (String)i.next();
    System.out.println(name);
    }It would be nice to have it set globally somewhere in
    the program.
    koemActually, the truth is quite the opposite, the UIManager only has control over swing components.
    There are many ways you can set these globally. You can sublcass your own look and feel, use the system look and feel, call UIDefaults.put() etc.
    Graeme

  • Something wrong with the system

    It is a problem about showing the hard disk available storage size.
    When I finishing download something, the status bar will show a larger number which mean the available storage size is bigger before downloading something.
    However when I check with disk utility will get a difference result.
    Whats wrong with my mac?

    If you have turned on Time Machine, your Mac is creating "local snapshots" > http://pondini.org/TM/30.html
    The space that local snapshots take is detected as free space by Finder or Get Info window, so it's normal that you see different storages on Finder and Disk Utility

Maybe you are looking for

  • GMAIL IMAP: Mail app on iPhone, random old emails showing as new in inbox.

    Hi all, I've tried to get an answer to this elsewhere, hopefully someone here can shed some light on my problem. I just switched both my GMAIL accounts from POP to IMAP: using the web interface, everything's fine; using the Mail app on my desktop, ev

  • Repository filter - Details iView

    Dear all, I prepared a repository property filter to manipulate special properties (as the name suggests ). In the "KM Content iView" the filter works fine, but if I open the "Details iView" the filter doesn't take action. What I have to do, to enabl

  • Why does my PoP3 mail open in my gmail inbox

    There seems to be no system as to where my messages will open.

  • Triggering the process chain

    Hi all, I just installed a couple of process chains(content). And i can see them in Process chain maintenance too .. What are the steps that need to be followed to trigger the process chains .. and how do i know, the process chians are in process or

  • Session expired message

    Hi all i am using session for my loginid in my jsp...i have been maintaining the loginid session nearly to 30 forms...so when a user sits idle for 15 minutes ,then automatically it should identify with a script message or redirect to login page indic