Problem with calender timezone

hi first i got the instance of the calendar and printed the date? The date showed in IST which is my timezone. After this i changed the Timzone of the calendar to "UTC" and printed the date. still the date comes in IST and the date is same before and after changing the timezone. how to understand this? why is the time not changing according to the timezone set? why the time is always showing in IST which is my OS timezone?

murrayb9654 wrote:
DrClap wrote:
Date objects don't have timezones. That's how to understand it. If you want to display a Date in a particular timezone then create a SimpleDateFormat and apply that particular timezone to it, then use its format() method to display the Date.hi thank you. Then i am confused with the api. please see the following.
the following is the api
java.util.Calendar.setTimeZone(TimeZone value)
this mean that we can set the timezone to the calender. am i right?Yes.
if date object does not contain timezone information when i printed it it clearly prints IST . how is it able to that?You printed a string representation of the date which interpreted the date as IST. It's able to do that by computer programming. And after all it has to represent the date in some time zone -- which time zone should it choose if not your system's default time zone?
Suppose i have date like 22-03-2009 12:30:30 That isn't a date. It could represent a variety of dates, depending on what time zone you use to interpret it.
when i use dateformat with a particular timezone info how will it convert the date exactly to that time zone when it don't know the timezone of the given date.You aren't paying attention. A Date doesn't have a timezone. It is simply the number of milliseconds since a particular instant of time. That instant of time (I'm recapping the API documentation which you haven't read here) was midnight on 1 January 1970 in UTC. And the SimpleDateFormat object represents that instant, or any number of milliseconds after it, using computer programming. Note that the SimpleDateFormat object will represent that instant differently depending on what timezone you assign to the SimpleDateFormat object. You could write some code to try that yourself.

Similar Messages

  • Sync problem with calender - outlook 2010

    Hello
    I've a problem with the settings of the synchronisation of my calender. I am able to sync 2-ways on contacts - in these settings I am able to choose outlook express & than 2 ways synchronisation. I cannot choose this kind of settings for my calender. 
    I'm using: windows 7 with outlook 2010.
    I've downloaded the latest version of the Black Berry Desktop manager.
    Hope anyone can help me...
    Vanessa

    Hello,
    BradleyDIngram wrote:
    outlook calender 2010 does not sync with bold 9700.
    Wrong...while it may not be working for you for one reason or another, your statement as written is not accurate.
    BradleyDIngram wrote:
    Are they going to make a fix for this?
    They already did...it's called BlackBerry Desktop Software 6.0.
    BradleyDIngram wrote:
    Is it possible to download BB 6.0 to bold 9700 so outlook 2010 can  sync?
    Nope...the device OS 6.0 has only been released so far (I think) for the Torch. And device OS 6.0 and Outlook 2010 are not linked as far as this issue is concerned.
    Please feel free to post some specifics about the issues you are having and hopefully someone will be able to assist.
    Cheers!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Problems with Calender Entries from Exchange Server

    I think this just started on Friday or Saturday--
    I opened my calender on my iPhone and it seemed a little empty. I noticed that a couple of appointments that I know should be there are not. I restarted the iPhone thinking there was some kind of transient glitch and some (not all) of my missing items appeared. Then disappeared. Then appeared. Then disappeared. Then they stayed gone. Every time I open my calender now, that happens.
    It seems that the items that stay put are the ones that I put directly into my iPhone. Many others come and go, and some never show up at all.
    Thankfully, my Outlook calender seems to be in good shape, although the new items I have put into my phone since Saturday have not synced.
    And my contacts sync with no problem, too. It's just the calender. Any help would be appreciated.
    Rick

    We have a similar problem with one VP's iPhone in our environment. Did some testing today and discovered the following:
    * When an appointment is sent to the VP and he accepts the appointment from his iPhone, all seems well, meaning that the appointment is visible both on his computer's Outlook and on his iPhone calendar.
    * When an appointment is sent to the VP and he accepts it from his computer's Outlook, it still appears as a "new invitation" on his iPhone and, if he does not respond right away from his iPhone, that appointment disappears from his iPhone. It remains on his Outlook calendar. These missing appointments on his iPhone cause scheduling problems for us, as you can imagine!
    So, my question is: how must one handle Outlook appointment schedule acceptance? Further complicating our situation is that this VP has a delegate who accepts appointments on his behalf. We're never quite confident whether his iPhone accurately reflects his actual appointment schedule.
    Please help! Thank you!
    Teija

  • 6300 & Lotus Notes V7 (Synch problems with Calenda...

    Trying to synch my calendar on a 6300 with Lotus Notes v7 HF277 L-GHUS-5RWNHM with PC Sync v 6.86.9.0.
    When trying to Synch the process fails with following error message :
    Calendar Incomplete. Unable to process all items.
    The calendar sycn was working fine for several days and all of a sudden the synch started to fail. No updates to phone or Lotus Notes occurred during this period.
    Can you advise how I can force replication from Lotus Notes to my 6300 phone or overcome the problem above ?

    Hello, I am meeting a similar problem with my N95 and Notes V7 Calendar.
    The feature used to work with my N95 until very recently.
    Synchronization of the list of contacts does work but the calendar stopped working.
    Here are the problem symptoms  
    Nokia PC Suite opens Lotus Notes V7 and seems to be scrolling entries while displaying a counter being incremented against a total number - in my case the total number is 779.
    When the first counter reaches 760, the dialog stops resulting into the 2 following synchronization msgs:
    PC Sync has encountered a problem and has terminated the synchronisat
    and
    The synchronisation has been aborted.
    I observed that  
    Deleting one calendar entry reduces the total number from 779 to 778 - unfortunately the the scrolling still aborts before reaching the 778 number.
    Reducing the  calendar synchronisation window to the bare minimum (1 day before / 1 day after) does not change the scrolling process (ie. the whole 778/779 entries seem to be scrolled) and the process keeps aborting.
    I have the following software configuration: 
    Nokia PC Suite is 7.1.18.0
    Lotus Notes is 7.0
    and I updated the phone software with latest firmware available on the Nokia site
    I have been a very happy user of the N95 Calendar function until now.
    Would anybody help here ?
    Kind regards.

  • Problem with Oracle Timezones

    Hi,
    I am getting some problems while using oracle time zones. The query I am using is as:
    select FROM_TZ(CAST(TO_DATE('10/2/2005 10:22:30','DD/MM/YYYY HH:MI:SS AM') AS TIMESTAMP), 'GMT') at time zone 'Europe/Kiev' AS New_Time from dual;
    It gives me error as :
    ORA-01882: timezone region %s not found
    I checked that v$timezone_names contains entry for Europe/Kiev.
    The query works fine for some values but not for all values from v$timezone_names.
    What can be the reason for this error? Do I need to do any other setting?
    Thanks in advance.

    Hi,
    Thanks Laurent,
    Actually the problem arises when I try to connect to a remote machine. I have Oracle client installed on a machine(SQL*Plus: Release 9.2.0.1.0 ) and with this client I am connecting to a remote machine which has database, client and server installed on it(SQL*Plus: Release 9.2.0.6.0).
    The query works fine when I execute it by logging to the remote machine directly, but fails when I connect to that machine through the Oracle client machine.
    All machines have HP-UX.
    What can be the reason for such behavior?
    Thanks in advance.

  • Problem with Daylight/Timezone

    Hi all, here is the problem. I hava an Ultra 5 with Solaris 7 and a Progress database. I want to deactivate the autommatic changes of daylight and do it manually each time, because it causes problems to my application.
    Thank you in advance for your help. Marilena

    Hi Marilena,
    Follow these steps to change the system time zone:
    1. Become superuser
    2. Edit the /etc/TIMEZONE file, change the TZ=time-zone variable, and save the
    changes. The timezone is reset.
    3. Reboot the system.
    Here is an example of the /etc/TIMEZONE file for a system set to Pacific
    Standard/Pacific Daylight Time. Note that /etc/TIMEZONE is now a symbolic link
    to /etc/default/init:
    # @(#)init.dfl 1.2 92/11/26
    # This file is /etc/default/init. /etc/TIMEZONE is a symlink to this file.
    # This file looks like a shell script, but it is not. To maintain
    # compatibility with old versions o
    f /etc/TIMEZONE, some shell constructs
    # (i.e., export commands) are allowed in this file, but are ignored.
    # Lines of this file should be of the form VAR=value, where VAR is one of
    # TZ, LANG, or any of the LC_* environment variables.
    TZ=US/Pacific
    Here is an example of how to change the timezone from Pacific to Eastern:
    osiris%su
    Password:
    # vi /etc/TIMEZONE
    TZ=US/Eastern
    :w!
    # reboot
    osiris% date
    Tue Jul 14 14:24:52 EDT 1999
    revert back.
    Thanks.
    regards,
    senthilkumar
    SUN - DTS

  • Problem with the Timezone settings

    hi We are having a database in the timezone 'Australia/Melbourne' and after the daylight saving is enabled, below are my findings on the server:
    SQL> SELECT SESSIONTIMEZONE FROM DUAL;
    SESSIONTIMEZONE
    +11:00
    SQL> select tz_offset(dbtimezone) from dual;
    TZ_OFFS
    +10:00
    SQL> select to_char(sysdate,'DD/MM/YYYY HH24:MI:SS') from dual;
    TO_CHAR(SYSDATE,'DD
    07/10/2010 22:22:11
    SQL> select
    to_char(sysdate, 'DD/MM/YYYY HH24:MI:SS') as australia_timestamp,
    to_char(from_tz(cast (sysdate as timestamp), 'Australia/Melbourne') at time zone 'UTC', 'DD/MM/YYYY HH24:MI:SS') as utc_timestamp
    from dual;
    2 3 4
    AUSTRALIA_TIMESTAMP UTC_TIMESTAMP
    07/10/2010 22:22:22 07/10/2010 12:22:22
    SQL> !date
    Thu Oct 7 22:22:55 EST 2010
    I checked the clock for this for UTC: at http://www.timeanddate.com/worldclock/ and it was: Thursday, 7 October 2010 at 11:24:21
    My question here is when the diff in the timezones timings is 11:00 hours and even the server time and the sysdate show the same, then why the above queries are returning diff results?
    Is it related to some setting which is wrong or there is something to be modified in the query itself?

    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    iTunes for Windows: "Registry settings" warning when opening iTunes

  • Ios 5 problem with Calender

    After upgrading to Ios 5, my calendar events are all gone and the plus button in the calender is gone. I don't use Outlook btw.
    Please help!

    Few things you can do: Connect your iphone, and on the summary page, go to music tab, uncheck all songs. Sync, reboot, recheck songs that you want in. It should work.
    If not, then Restore and set up as a new phone. I had this issue to, and the uncheck all songs did not fix it for me. So I restored my phone and set up as new and music works perfect.

  • Problem with calender?

    I have 2 questions about creating calender :
    1- when I create a calender and add it to my main page as a portlet ,I noticed that when i click on the next button on the calender protlet to view the next page ,the next page is viewed on my whole page ,it does not viewd as portlet ,Why ???
    2- can I create a calender that reserved a set of dates for one event ? for example I have list of events each one have start and end date ,I want to view the period from start date to end date as busy period for this event .

    I don't know which version of Portal you are using, because in-place portlet pagination is working from say (3.0.6 onwards if i am not wrong)

  • Problem with date and timezone

    Hello,
    I am encountering a problem with the command new java.util.date() on a hpux 11 machine.
    The "date" from command line returns:
    Tue Oct 26 18:02:02 MEST 2004
    And the date from java returns:
    Tue Oct 26 17:02:02 GMT+01:00 2004
    It is as if the JVM was running on another timezone than the machine. The only change we made is an upgrade from java 1.2.2.04 to 1.2.2.17. Our old java program running since 2000 hasn't changed nor the others environment files.
    Does anyone has an explaination? Javadoc for jav.util.date does not speaks of timezone.
    Thanks in advance,
    Valere

    I have tried, it is the same pb with java 1.4.
    How to set the default timezone for a JVM?
    Concerning the patch, we have several others worksations running well with 1.2.2.04 (except a small display bug that i wanted to correct by upgrading the JVM). To my knowledge, this patch is not installed on any of them.
    Another way to investigate, it seems that the java version installed on the others stations refers to java 3D. What is it? It has a different architecture than standard jre, but java -version seems exactly the same (except the version number itself).
    Mayday, mayday!

  • Sync problems with outlook 2007 calender

    I am new in this type of comms.
    BUT: I have a Palm Tungsten T5; have Palm Desktop 6.2.2 with the update for Windows7.
    I have a sync problem with outlook 2007 calender; contacts, ToDo, memos all ok.
    HotSynLog says: there are multi-day repeating records. [i knew that they do not sync, hence i deleted them PRIOR to syncing]
    I found the listed records BUT either on dif days and they are "no timed" ones! and NOT multi-days ones.
    I deleted them anyway - did a re-sync. With no different result. Still listed - though deleted and now non-existent.
    Error code: OLERR: 03-000F (0xaf604005) and others - if this means anything.
    Post relates to: Palm TX

    Hello,
    I receive email on my device from two addresses: 1) @sprint.blackberry.net and 2) @charter.net.  When I was having problems similar to those you are experiencing, I had these two addresses listed under Default Services - Calendar (CICAl) - Messaging (CMIME).  These addresses were @sprint.blacberry.net and @charter.net. Once I followed the steps previously referenced, only one email address(@sprint.blackberry.net) appeared under the (CICAI) and (CMMIE) default setting.  Reference to @charter.net was removed.  My syncs have worked correctly since then; however, I only two way synce with the device and Outlooks.  I also continue to get emails from both addresses without a problem.
    If you don't mind giving up the Yahoo calendar, I would do the same.  If you want to continue using the Yahoo calendar, I'm guessing that it must be selected in the Default Services - Calendar (CICAI) before performing a sync.  Likewise for your @sprint.blackberry.net address; it also must be selected in the Default Services prior to performing a device to Outlook sync.
    I hope this helps.
    Tres

  • Date problem with IST(+5:30) timezone

    Hi,
    I'm having problem with Timezone IST, which is GMT + 05:30.
    SimpleDateFormat returns incorrect date when timezone on client machine is other than IST.
    When Timezone on machine is IST, correct value is returned.
    See the below example. All four dates are same ( LKT is also + 05:30).
    When timezone on machine is IST, all four dates are displayed same.
    For any other timezone, IST date is displayed incorrectly, rest 3 are displayed correctly.
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    public class Test {
        public static void main(String[] args) throws ParseException {
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("EEE MMM d HH:mm:ss Z yyyy");
            Date date1 = simpleDateFormat.parse("Wed Sep 02 02:17:41 +0530 2009");
            Date date2 = simpleDateFormat.parse("Wed Sep 02 02:17:41 IST 2009");
            Date date3 = simpleDateFormat.parse("Tue Sep 01 13:47:41 PDT 2009");
            Date date4 = simpleDateFormat.parse("Wed Sep 02 02:17:41 LKT 2009");
            System.out.println(date1.toString());
            System.out.println(date2.toString());
            System.out.println(date3.toString());
            System.out.println(date4.toString());
            System.out.println("Date1 equals Date2? " + date1.equals(date2));
            System.out.println("Date1 equals Date3? " + date1.equals(date3));
            System.out.println("Date1 equals Date4? " + date1.equals(date4));
            System.out.println("Date1.getTime() " + date1.getTime());
            System.out.println("Date2.getTime() " + date2.getTime());
            System.out.println("Date3.getTime() " + date3.getTime());
            System.out.println("Date4.getTime() " + date4.getTime());
    Output when timezone on client is GMT IST (GMT + 05:30):
    Wed Sep 02 02:17:41 IST 2009
    Wed Sep 02 02:17:41 IST 2009
    Wed Sep 02 02:17:41 IST 2009
    Wed Sep 02 02:17:41 IST 2009
    Date1 equals Date2? true
    Date1 equals Date3? true
    Date1 equals Date4? true
    Date1.getTime() 1251838061000
    Date2.getTime() 1251838061000
    Date3.getTime() 1251838061000
    Date4.getTime() 1251838061000
    Output when timezone on client is GMT (Casablanca):
    Tue Sep 01 15:47:41 ACT 2009
    Tue Sep 01 19:17:41 ACT 2009
    Tue Sep 01 15:47:41 ACT 2009
    Tue Sep 01 15:47:41 ACT 2009
    Date1 equals Date2? false
    Date1 equals Date3? true
    Date1 equals Date4? true
    Date1.getTime() 1251838061000
    Date2.getTime() 1251850661000
    Date3.getTime() 1251838061000
    Date4.getTime() 1251838061000
    Output when timezone on client is PDT ( -0800, -0700 for this date due due Daylight saving):
    Tue Sep 01 13:47:41 PDT 2009
    Tue Sep 01 17:17:41 PDT 2009
    Tue Sep 01 13:47:41 PDT 2009
    Tue Sep 01 13:47:41 PDT 2009
    Date1 equals Date2? false
    Date1 equals Date3? true
    Date1 equals Date4? true
    Date1.getTime() 1251838061000
    Date2.getTime() 1251850661000
    Date3.getTime() 1251838061000
    Date4.getTime() 1251838061000
    IS this a bug in java??
    Regards

    Your program is in error. PDT and LKT are not valid time zone ids in Java. There may be other problems, also, I didn't check.
    I know this program produces valid results, you can try it
    import java.text.DateFormat;
    import java.util.Date;
    import java.util.TimeZone;
    public class DateTest
        public static void main(String[] args)
            Date current = new Date();
            DateFormat df =
                DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.FULL);
            System.out.println("Default TZ: " + df.format(current));
            df.setTimeZone(TimeZone.getTimeZone("IST"));
            System.out.println(df.format(current));
            df.setTimeZone(TimeZone.getTimeZone("GMT"));
            System.out.println(df.format(current));
            df.setTimeZone(TimeZone.getTimeZone("Etc/GMT-5"));
            System.out.println(df.format(current));
    }This program lists all of Java's time zones
    import java.util.*;
    public class TimezoneList
        public static void main(String[] args)
            int msPerHr = 3600 * 1000;
            String[] ids = TimeZone.getAvailableIDs();
            for (int n = 0; n < ids.length; n++)
                TimeZone tz = TimeZone.getTimeZone(ids[n]);
                System.out.print(
                    "TZ: " + ids[n] + "  " + (double) tz.getRawOffset() / msPerHr + "  ");
                System.out.println(
                    tz.useDaylightTime() ? "DST=" + (double) tz.getDSTSavings() / msPerHr : "");
    }

  • Problems with the Pacific/Auckland timezone

    I have a problem with the Pacific/Auckland timezone.
    I have a client in New Zealand using Java on a Windows XP computer with the Auckland, Wellington Windows timezone. Around March 30th he had one hour dis-alignment in the Java time and the Windows time, this went on for some days until after the timezone switched Daylight Saving Time (DST) off April 4th.
    I have tested it with the small program below and will have the problem again from September 27th to October 3th (New Zealand turn DST on September 26th). It seams to be a problem only for the Pacific/Auckland timezone as when I use other timezones the problem does not occur. Is this a bug in Java or do I do something wrong?
    Note: I tested using the JRE 1.6.0_20
    import java.util.GregorianCalendar;
    import java.util.Calendar;
    import java.util.TimeZone;
    public class ShowDate {
         public static void main(String args[]) {
              Calendar cal = new GregorianCalendar();
              String str = cal.toString();
              String data[] = str.split(",");
              for (int i=0; i<data.length; i++) {
                   System.out.println(data);

    The problem was not connected to Java but a missing update of the Windows system

  • Timezone problem with Desktop 6.2 calandar and outlook 2007 after HotSync

    After recently being upgraded to Desktop 6.2 I have a problem with Hotsync Palm-calendar and outlook 2007.
    When I create a new appointment in outlook 2007 and next do a HotSync it is stored in PalmTungsten-E2 calendar with a timezone CEST (=2 hours earlier than it should be).
    At least I won't be late for these appointments, but its a bit annoying.
    I already tapped and untapped the box -New events use time zones- in the Calendar Preferences, but that does not help.
    Louis
    Post relates to: Tungsten E2
    This question was solved.
    View Solution.

    Thanks Colapop for you suggestion.
    I had already tried that option and it gave no good result.
    Yesterday I bought KeySuite from Chapure and now everything works fine again.
    I do regret a bit I upgraded to PalmDesktop 6.2 because that was the start of my problems. The reason for updating to 6,2 was that I wanted to make use of outlook 2007 instead of palmCalender.
    Cheers
    LouisK100

  • Hi! I have problems with my calender. The diarise of dates is sometimes not authentic, dates dissapeare or were put on a wrong day. Who can help?

    Hi! I have problems with my calender. The diarise of dates is sometimes not authentic, dates dissapeare or were put on a wrong day. Who can help?

    Don't worry I've sorted it! I just had to turn off Reminders as well in iCloud. Calendar then worked fine, even when I turned Calendar and Reminders back on.

Maybe you are looking for

  • Supplier Open Interface Errors

    I created an supplier interface in plsql. Want I want to do is kick off the following concurrent programs from pl/sql using fnd_request.submit_request Supplier Open Interface Import Supplier Sites Open Interface Import Now when I run the pl/sql witho

  • Oracle Siebel 8 adapter on Oracle WebLogic 10g

    Hi everybody, I need to install the new Oracle Service Bus 10g and to integrate with Siebel 8. So what I need is off course the bus and the adapter. I've a list of questions that raised during my initial research: 1- Is it possible to install Oracle

  • Avchd panasonic camera to imovie works!!!!!!

    k, i tried a suggestion buried deep in the discussions for importing from the panasonic hdc-sd5 and it works. my camera would not show in imovie when connected:however, the 4G sd card did show as a CAMERA when i connected the avcwriter(sansdisk micro

  • Handling long running processes in APEX

    Hello Experts, I need your help! I would like to call a long running PL-Proc from an Apex-App. So I build a page for the parameters with the wizzard - all fine. Pressing the button starts the pl-proc - thats also fine. Problem: While the PL-Proc is r

  • 10.7.2: still can't replicate 10.6 Open Directory or restore from backup

    I am trying to migrate my Open Directory (OD) database from an Xserve running 10.6.8 to an iMac running 10.7.2 now. As before the update to 10.7.2, I am unable to make the Lion server an OD replica of the OD database running on Snow Leopard. This is