Calendar shows task always in user-timezone

Hi,
First a short introduction in my problem:
I've implemented a calendar which should view these 3 Tasks:
- 6.5.2008   00:00 -  6.5.2008 23:59   Task 1 (1 day duration)  in UTC
- 7.5.2008   00:00 -  8.5.2008 23:59   Task 2 (2 day duration)  in UTC
- 5.5.2008   00:00 -  9.5.2008 23:59   Task 3 (5 day duration)  in UTC
The Demo User which logs in has TimeZone "Europe/Berlin". The Calendar has a dropdownbox where the user can select either "Facility" or "My TimeZone":
In "Facility" the User should see these 3 Tasks in UTC an not in his own timezone (all tasks from 00:00 to 23:59).
In "my timezone", he should see the 3 Tasks in his TimeZone (Europe/Berlin is UTC+2h at the moment) --> so the tasks are always from 02:00 - 01:59 for him.
The Problem:
When the sap.authentification is enabled and a user logs in, the "Facility" never shows me this Tasks in UTC. The Task is always shown in his timezone (02:00 - 01:59). But I have set UTC anywhere.
In "my timezone", where i load the current user-timezone its shown from 00:00 - 23:59.
I have absolutely no idea why the context element shows this always in user timezone
(_context element "timezone" of the Calendar view is bound to my attribute "zeitzone"_)
Here is the code part - I've debugged already. Everywhere is set UTC, but the Calendar always shows in userTime.
private void fillCalendar(String zeitstring) //
       deleteEntries();
        // check which mode is selected
        if (zeitstring == "Facility")
            // default should be UTC
            zeitzone = TimeZone.getDefault();
            zeitzone.setID("UTC");
            zeitzone = TimeZone.getTimeZone(zeitzone.getID());
            TimeZone.setDefault(zeitzone);
            // calenderinstanz in UTC
            Calendar calendar = Calendar.getInstance().getInstance(zeitzone);
            CctDate firstVisibleDate = new CctDate(new java.sql.Date(calendar.getTimeInMillis()));
            Time myTime = Time.valueOf("00:00:00");
            CctTime firstVisibleTime = new CctTime(myTime);
            // determine the startdate and starttime for the calendar
            wdContext.currentContextElement().setFirstVisibleDate(firstVisibleDate);
            wdContext.currentContextElement().setFirstVisibleTime(firstVisibleTime);
            TimeZone tz = TimeZone.getDefault();
            IECCalendarInterface calendarInterface = new ExampleCalendarEntrySupplier();
            List calendarEntries = calendarInterface.getCalendarEntries();
            int i = 0;
            zeitzone = TimeZone.getDefault();
            for (Iterator iterator = calendarEntries.iterator(); iterator.hasNext();)
                ECCalendarEntry entry = (ECCalendarEntry) iterator.next();
                CctCode timeZoneCode = new CctCode(tz.getDisplayName(), null, null, null, null, null);
                CctDateTime startDate = new CctDateTime(entry.getMStartDate(), timeZoneCode, new Boolean("false"));
                CctDateTime endDate = new CctDateTime(entry.getMEndDate(), timeZoneCode, new Boolean("false"));
                i++;
                zeitzone = TimeZone.getDefault();
                createEntry(startDate, endDate, entry.getMTitle(), entry.getMDescription(), WDTableCellDesign.valueOf(i));
        else if (zeitstring == "My TimeZone")
            ISessionContext context = SessionContextFactory.create();
            zeitzone = context.getCurrentUser().getTimeZone();
            TimeZone.setDefault(zeitzone);
            Calendar calendar = Calendar.getInstance().getInstance(zeitzone);
            CctDate firstVisibleDate = new CctDate(new java.sql.Date(calendar.getTimeInMillis()));
            Time myTime = Time.valueOf("00:00:00");
            CctTime firstVisibleTime = new CctTime(myTime);
            // determine the startdate and starttime for the calendar
            wdContext.currentContextElement().setFirstVisibleDate(firstVisibleDate);
            wdContext.currentContextElement().setFirstVisibleTime(firstVisibleTime);
            TimeZone tz = TimeZone.getDefault();
            IECCalendarInterface calendarInterface = new ExampleCalendarEntrySupplier();
            List calendarEntries = calendarInterface.getCalendarEntries();
            deleteEntries();
            int i = 0;
            for (Iterator iterator = calendarEntries.iterator(); iterator.hasNext();)
                ECCalendarEntry entry = (ECCalendarEntry) iterator.next();
                CctCode timeZoneCode1 = new CctCode(tz.getDisplayName(), null, null, null, null, null);
                CctDateTime startDate = new CctDateTime(entry.getMStartDate(), timeZoneCode1, new Boolean("false"));
                CctDateTime endDate = new CctDateTime(entry.getMEndDate(), timeZoneCode1, new Boolean("false"));
                i++;
                createEntry(startDate, endDate, entry.getMTitle(), entry.getMDescription(), WDTableCellDesign.valueOf(i));
Thank you,
Daniel
Update:
I've tried to fix the problem nearly the whole day.
I've debugged the fillCalendar()-Method while inserting the first Task:
- Default Timezone is "UTC"!
- zeitzone.ID and tz.ID are always set on "UTC"
- timeZoneCode is "Koordinierte Universalzeit null null null null null" (koordinierte Universalzeit is German for UTC )
- startDate : "06.05.2008 00:00:00 Koordinierte Universalzeit false"
- endDate: "06.05.2008 23:59:00 Koordinierte Universalzeit false"
- calendar.zone.ID is set to "UTC"
---> The Calendar shows the task from 06.05.2008  02:00 to 07.05.2008  01.59
Somewhere must stand my timezone and the calendar refuses to display the view in UTC!!! But where?
Edited by: Daniel Mler on May 8, 2008 3:31 PM

Hi Frank,
Thanks for your reply.
You can now look only at the code in the first IF-Condition: (Facility)
I've just tried to replace "UTC" with "CST"... in debugger he calculates me the new times:
startDate: 13.05.2008 05:00:00 Zentrale Normalzeit false
endDate: 14.05.2008 04:59:00 Zentrale Normalzeit false  It works...
The problem is only that the calendar contextelement doesn't set this new time now. It creates the task from 7:00 to 6:59 .... 2 hours later.
These 2 hours are the difference from myTimeZone (the user i logged in: Europe/Berlin = UTC+2h) to UTC.
So I want that the default timezone of the calender is UTC and not the timezone from the logged in user.
But I can't logon without user (then it works!) because I need the User for another functionality (myTimeZone)

Similar Messages

  • Outlook 2013 shared calendars show "no connection" and users can't see other's free / busy time in scheduling assistant

    Info:
    Outlook 2013 Pro Plus - Windows 7 64bit - Exchange 2007 Hosted by Rack Space - everything fully patched....
    every user in our company on Office 2013 now has the same issue: shared calendars won't populate with the following error: "no connection" when they try to see another user's calendar in scheduling assistant, it just shows those diagonal lines
    (like they don't have permission)
    Based on "research", reaching out to Rack Space and some desperate Googling, I've tried the following to no avail:
    run full repair of Microsoft office 2013 and also reinstalled Office 2013
    turn off /on cached exchange mode, turned off /on Work Offline mode
    rebuild OST and email profile
    start Outlook in safe mode with no add-ins running
    check auto discover records and add auto discover server address to local intranet zone in Internet Explorer
    modify calendar permissions for both ends of the calendar interaction
    check Outlook OWA access, confirmed everything is fine there
    anyone have any ideas for me? people in Outlook 2010 have no issues BTW; just Outlook 2013....
    thank you so much in advance and please let me know if I can provide more info!

    Hi,
    This issue may be caused by KB 2837643 & KB 2837618, please uninstall the patches, let the users create a new profile to test the result:
    http://support.microsoft.com/kb/829918/en-us
    If the issue is caused by the patches, please note we have realized this issue and hopefully there will be a fix to this issue soon. We will inform you as soon as there's a fix.
    Regards.
    Melon Chen
    TechNet Community Support

  • Invitation to Share a Calendar Shows UID Instead of User Name

    Hello Everyone!
    My Open Directory users are able to share calendars to eachother, however when the invitation comes through to be accepted, instead of Calendar saying:
    "Tim Timmers" invited you to a shared calendar.
    it says:
    /principles/_uid_/9BBCC.....etc./ invited you to a shared calendar.
    Essentially the user name is being replaced with the UID of the user's calendar data location when viewing the invite.
    Has anyone encountered this same issue or have any clues to how to fix this?
    OD is running, users have proper email addresses associated with their OD account and the invitation can be accepted like normal.
    We're running OS X Server 10.8.2, server app 2.1.1
    Thanks for the help!

    (Me too post)
    I have the same issue in two different environments/networks. The first is just as you describe, an OD with networked accounts, the other network has only server local accounts.

  • Calendar show event on incorrect day - timezone miscalculation

    I have an event that occurs on Thursday from 7am to 8am in Sydney, Australia. I am in Central time in the US, so it occurs on Wednesday from 2pm to 3pm. The event shows up in my calendar on Thursday. The event was created in Outlook I assume, and shows up correctly in my Outlook, but not Mac Calendar. Any ideas on how to get this to show up on Wednesday?
    Thanks!

    Time Zone support is turned on and linked to my current time zone correctly. Also, the event is now showing up on both Wednesday and Thursday. I am not sure what caused it to do that, but the problem originally started that way, then moved to just Thursday, and now it is back to both days.

  • Sync outlook 2007 calendar and task - error 80043b...

    Hi,
    Using a nokia 5800xm, running firmware v51.0.006, ovi suite 2.2.1.23, outlook 2007 on xp sp3
    When I try to sync the calendar and task it always fails with
    "Calendar and tasks not synced
    Selected folder could not be found. Create or select another Personal Folders file in Microsoft Outlook. Then sync again. Error code 80043bec.". Please see attahce fiel ovi sync error
    I only have one email profile in outlook the sync options only show one folder to sync with.
    I have uninstalled and re-installed ovi suite. The sync previously worked with pc-suite.
    Keith
    Attachments:
    Ovi Sync Error.jpg ‏17 KB

    Email response from Nokia Support!   Are they saying Outlook is not supported?
    In response to your inquiry, please be advised that we are currently working on the compatibility of Microsoft Outlook with Nokia Ovi Suite application regarding synchronization of calendar tasks. We suggest that you use Ovi Calendar as an alternative for your calendar activities. Please see the link provided below:
    http://calendar.ovi.com
    Sync with Ovi is an online service that gives you the option of storing your calendar items online, so you can access them wherever you have internet access. You can sync your calendar items online using Sync with Ovi. Online sync for calendar items using Nokia Ovi Suite is currently being updated. You need a Nokia account to synchronise to Ovi.com.
    To set up your phone to synchronise to Ovi.com:
    *Open the Sync application on your Nokia phone. For details, see your phone’s user guide or on-screen help.
    *Select Ovi.com as the synchronisation profile and then select Options > Synchronise. You must connect to the internet when prompted for the sync to succeed.
    *The next time you sign in to Ovi after syncing your phone, the Ovi home page displays your upcoming calendar events.
    Furthermore, we will forward this issue to the relevant department for further notice regarding synchronization of calendar activities between Microsoft Outlook and Nokia Ovi Suite.

  • Error enabling "Mail, Contacts, Calendars, and Tasks with Outlook" in iCloud 3.0  Control Panel

    Unable to enable option “Mail, Contacts, Calendars, and Tasks with Outlook” under iCloud 3.0  Control Panel.
    Get following error when clicking checkbox to enable it under iCloud 3.0 Control Panel.
    "Setup can't continue because Outlook isn't configured to have a default profile. Check your Outlook settings and try again."
    Have tried the following:
    Uninstalled / reinstalled iCloud 3.0 control panel
    Removed all mail accounts from Outlook 2013 except MS account
    Confirmed Outlook was chosen for  “Always uses this profile” under Control Panel – Mail (MicroSoft Outlook 2013) – show profiles
    Still get the same error when trying to enable the option under iCloud 3.0 Control Panel
    PC is running Windows 8.1 (64 bit)
    Outlook 2013 was just installed on the PC as part of new Office 2013 installation

    Two more things:
    First, sorry for the bad spelling, grammar, and all of that. English isn't my first language and I'm so frustrated at this point I'm not paying any attention to it. Sorry!
    Second, after trying to repair again the icloud 3.0 through the Control Panel of Windows, guess what? It made Offce to crash again! Now I will have to install it again.
    =(

  • Manually execute a povisioning task for a user in OIM 11g

    Experts,
    In OIM 11g, I would like to execute a resource provisioning task for a user thru OIM admin console.
    In OIM 10g, when we select a resource profile for a user, it used to show the list tasks that are executed. There we can add a new task to run manually there.
    How to do the same in OIM 11g. in OIM 11g, it is not even showing the lists of tasks executed during provisioning.
    Please let me know.

    If you are talking about manually adding the provisioning tasks to a user for a particular resource, then you can go to the resource profile of the user, select the particular resource -> click the 'Resource History' button on the right corner and from there you can manually add the tasks.
    -Bikash

  • What are the minimum requirements to successfully Synchronize a SharePoint 2010 Calendar or Task List with Outlook 2010?

    What are the minimum requirements to successfully Synchronize a SharePoint 2010 Calendar or Task List with Outlook 2010?
    SharePoint permission levels required for the user profile?
    Does the user need top level permissions on the SharePoint site?
    What other minimum requirements must be met for Outlook 2010 to synchronize successfully with SharePoint 2010?
    TheDrape

    Hi,
    To synchronize these libraries and lists, you must have Outlook 2010 installed on your client computer and you must have Collaborate permission to the library or list.
    You don’t need any permissions for the user profile.
    I provide you a link about synchronizing SharePoint 2010 content with Outlook 2010 for your reference:
    http://office.microsoft.com/en-us/sharepoint-foundation-help/synchronize-sharepoint-2010-content-with-outlook-2010-HA101881295.aspx
    Thanks,
    Rock Wang
    Rock Wang TechNet Community Support

  • How to show Date and Time with TimeZone

    Dear All,
    I have to show Date and Time with TimeZone abbreviation,
    for example:
    1) 31 March 2011 2:30 in india standard time - it should show in screen 31 March 2011 2:30 IST.
    2) 31 March 2011 2:30 in Australia/New Zealand - Eastern time zone it should show in screen 31 March 2011 2:30 AEST.
    how can i show *Australia/New Zealand - Eastern time zone to AEST*,
    I tried with format DD MMM YYYY HH:MM zzz, and i looked time zone API too.
    Appreciate your help
    Thanks
    Daya

    Dayananda wrote:
    ok, than i have to use zzzz format, as z won't help in my case, so i have to use zzzz which display descriptive value like, Indian Standard Time i.e. ISTPer the javadocs there is a very specific reason why that is a problem especially if you intend to support many timezones in one application.
    "+For compatibility with JDK 1.1.x, some other three-letter time zone IDs (such as "PST", "CTT", "AST") are also supported. However, their use is deprecated because the same abbreviation is often used for multiple time zones (for example, "CST" could be U.S. "Central Standard Time" and "China Standard Time"), and the Java platform can then only recognize one of them+."
    Thus you have one single case where there can be many and moreover it can change (twice a year I believe.)
    There is a standard source for this information although when I tried it it appears to not work.
    If the app only needs to display one zone then provide a configuration value that allows a user to overload the display value.
    If the app needs to display many values then you MUST inform business users of the problem because there are duplicates and they, not you, need to decide specifically what happens in those cases.

  • BlackBerry Link and syncing Contacts, Calendar and Tasks with stand-alon​e desktop installati​on of Outlook 2010?

    I have used Blackberries in business since the beginning. Fantastic products!
    Sadly after spending the better part of Feb 6th transitioning from Torch to Z10 I have had to abandon the effort and request an RMA number to return the Z10.
    Here is why:
    "Link" appears to be focussed on syncing documents and media like content such as music and movies but does not, from what I can tell, sync Outlook Contacts, Calendar entries or Tasks. I have never bothered putting music or movies on a BB... never had the time to fuss with such... however, I use, edit and sync my Contacts, Calendar and Tasks between my Torch and my desktop PC every day... as in EVERY day!
    From a review of postings on various forums there does not appear to be a solution in the works to this problem and the trend appears to be to use a Cloud based email or service to host such "PIM" information and then sync the handheld to the Cloud repository. This method MAY be suitable for some forms of info but it is not suitable to post such personal info on the cloud... it needs to stay on the desktop and in the handheld device, both of which are password protected and looked after carefully.
    This is an odd situation, BB (RIM) cut their teeth on pages, emails, BBM and great cell calls, mainly in a business environment. Many small business users live and die on their BB. They do not run Exchange Server... they run Outlook stand alone on a desktop. To remove this functionality from the Z10 (BB10 overall perhaps) seems at best to be a serious oversight.
    I wish BB the best with the Z10 and hope to see it do well. For me, I had to make a choice between the efficiency and effectiveness of syncing Outlook Contacts, Calendar and Tasks with the Torch, or hand feeding and maintaining thousands of constantly changing entries into what is undoubtedly a more powerful and wonderful looking Z10. Efficiency and effectiveness won over brawn and beauty. The Torch is back on line... It's a tool... a really great tool! Tomorrow it will process a hundred emails,  numerous SMS messages, a few BBM's, keep me on time and feed me a bunch of useful phone numbers and addresses as it has for a couple of years now. It will also spend an hour or so teathered to my laptop at a remote location where there is cell coverage but no internet. It will NOT display any movies, tweats, twits, or facebook stuff that I won't have time to look at anyway. The fast, powerful, shiny Z10 is heading in an RMA bag back to Telus. 
    I have a sort of sick feeling in my gut and hope to be able to sync again in the future!

    my feelings and my situation excatly

  • SBO calendar with more than 7 users

    Hello!
    Our customers like SBO calendar functionality, especially possibility of planning activities for other employees. But the very big problem is that there is only 7 users can be shown in calendar view by day.
    Question: how to show more than 7 users in SBO calendar.

    Vadim,
    seems you are requesting a new (expanded) functionality. You should refer to note [1028874|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMSZ3PTU4ODAwMDAr)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=1028874]. As this is a non-legal request post it at /community [original link is broken]
    -> You may post new thread by applying 'Post New Thread' option; however, please also check for existing threads and reply to any relevant existing one if applicable instead of creating a new thread.
    Regards
    Mario

  • Subscribed Calendar shows only "New Event"s

    Hi there:
    I've searched and seen a few similar issues, but no resolution.
    I have published a Calendar, and sent an email invitation for subscription to it. The URL is similar to:
    webcal://ical.me.com/XXXXX/myCalendar.ics
    Subscribing to the Calendar isn't an issue, from other user's computer. The Calendar shows up fine, but all of its events have no content other than "New Event".
    Ideas?
    Thanks in advance for any insight,
    Patrick
    ps: all events in question are "All Day" events, FWIW.
    Message was edited by: Patrick Cheatham

    Hi Patrick - did you ever resolve this issue? I'm encountering the same thing.
    Dwayne

  • Outlook 2013: Cannot insert any attachments into calendar events & tasks

    Hi,
    I encountered a seemingly ridiculous problem: 
    I cannot insert any attachments into calendar events & tasks in
    Outlook 2013 on a Win 8.1 machine. Outlook simply ignores CTRL-V paste actions with files and also all drag&drop actions with files. Does anyone have a solution or similar problems?
    Outlook 2013 runs using an exchange server account (Outlook.com / Office 365) on the machine.
    Even if there is a logic behind this behavior, Outlook should at least inform the user why it rejects inserting the attachment.
    Inserting attachments into e-mails works fine.
    All 3rd party add-ins have been disabled, to avoid interference of an add-in.
    Christian

    Hi,
    This is an known issue, you can refer to the article that our MVP Diane Poremsky wrote:
    Attachments are hidden in Outlook.com tasks and appointments
    http://slipstick.com/outlook/olc-hotmail/attachments-hidden-outlookcom-tasks-contacts-appointments/
    My opinion is, since Outlook.com calendar doesn't support attachments, this may be expected when you are using an Outlook.com account.
    Feel free to let me know if I misunderstood anything.
    Regards,
    Melon Chen
    TechNet Community Support

  • Outlook 2010/Shared calendar showing as busy/no detail

    Hi, user has editor access to another user's calendar yet only free/busy information is showing.
    The primary user's profile also has a second exchange account on it. Thought this account might be limiting things so gave it editor access as well. Still, only busy information is shown on calendar.
    Anything else to check? Thanks in advance-

    Hi,
    Create a new Outlook profile for the user to test the issue again.
    1. Exit Outlook.
    2. Go to Start > Control Panel, click or double-click Mail.
    3. Click Show Profiles. Choose Prompt for a profile to be used.
    4. Click Add.
    5. Type a name for the profile, and then click OK.
    6. Highlight the profile, and choose Properties. Then Email Accounts.., add your email account in the profile.
    7. Start Outlook, and choose this new profile.
    If this problem does not occur in the new Outlook profile, the old Outlook is corrupted. We can delete that and use a new Outlook profile.
    Best Regards,
    Sally Tang
    TechNet Subscriber Support in forum
    If you have any feedback on our support, please contact [email protected] 

  • Subscribed calendars "Show Calendar On MobileMe" not available

    Anyone know why the "Show Calendar On MobileMe" option is available on some webcal://ical.me.com based subscribed calendars but not others?
    For example, in my iCal, two subscribed calendars originating from the same MobileMe user (URL webcal://ical.me.com/{username}/{calendarName}.ics) allow the "Show Calendar On MobileMe" option. Yet another subscribed calendar originating from another MobileMe user (URL webcal://ical.me.com/{anotherUsername}/{anotherCalendarName}.ics), does not offer the "Show Calendar On MobileMe" option.
    Am running MacOS 10.5.8 (iCal 3.0.8). I, too, have a MobileMe account, btw.
    Thanks for any help!

    I seem to be having the same problem with repeated appointments:
    I have an appointment with a start date of Tue 2nd Sept and an end date of Wed 3rd (created on iphone).
    On mobileme.com it appears on Thursday 4th as well.
    The appointment appears correctly in iCal (synced through mobileme, not iTunes).
    Looks like a bug to me.
    Dave

Maybe you are looking for