CalendarEvent and zones

I have a problem to find the right way to create a CalendarEvent in another time zone

on my Z10 my timezone is: Amsterdam, Berlin + 1 (THIS/MEZ == UTC + 1)

seems that Z10 uses only the standard time here and not the time of daylight, but the clock is correct on daylight saving time

also all the timezone - calendar selections are in standard hours - no daylight, leaves so use standard time

Event-zone: EDT GMT - 05:00

If I manually enter the event:

starts: 09:30

end: 10:00

Time of the is - 5

then I get: 15:30-16:00, which is correct to 6 hrs difference

now, I want to create the CalendarEvent in C++:

date usinga string as

T-2013-04 - 03 09:30:00

also tried: 2013-04 - 03T 09:30:00 - 05:00

sessionEvent.setStartTime(QDateTime::fromString(dt,Qt::ISODate));)

and set the time zone:

sessionEvent.setTimezone ("EAST");

but the calendar tells me now the event is

09:30-10:00 my local time

which is 03:30 - 04:00 IS

I'm doing something wrong?

or does mean that I have to add the time zone difference at the date of the event and setStartTime / EndTime at 15:30 - 16:00?

Now, I have a WORKAROUND

not flexible for all use cases, but for now it works:

CalendarEvent sessionEvent;
sessionEvent.setAccountId(accountId);
sessionEvent.setFolderId(folderId);
...... and so on
// TODO need the list of Timzone IDs
// BOSTON, MA belongs to EST / EDT
// dont use EST or EDT as TimeZone Database ID !
// Eastern Standard == "America/New_York"
sessionEvent.setTimezone("America/New_York");
int offsetDiffInSeconds = 0;
QString dt;
// if the device timezone is the same as the event timezone we don't need to calculate !
if (sessionEvent.timezone() != mCalendarService.settings().currentSystemTimezone()) {
    // we know the offset for the conference in Boston, MA
    // attention! if a conference spans over DST - start/end time, set the offset per conference day
    int eventOffsetInSeconds = -4*60*60; // -04:00 EDT
    // now we need the device offset
    // always calculate new or connect to device time settings changed TODO
    // thx Peter Strange :
    // http://supportforums.blackberry.com/t5/Cascades-Development/Incorrect-utcOffset-from-QDateTime-curre...
    // we need the offset from the conference
    // hint: do this per day if DST is changing while the conference
    dt = "2013-03-26T09:00:00";
    QDateTime eventTime = QDateTime::fromString(dt,Qt::ISODate);
    QDateTime eventTimeUTC = eventTime.toUTC();
    QString eventTimeUTCString = eventTimeUTC.toString("yyyyMMddhhmmsszzz");
    QDateTime eventTimeUTCConverted = QDateTime::fromString(eventTimeUTCString, "yyyyMMddhhmmsszzz");
    int localeOffset = (eventTime.toMSecsSinceEpoch() - eventTimeUTCConverted.toMSecsSinceEpoch()) / 1000;
    // no calculate the offset between locale and event timezone
    offsetDiffInSeconds = localeOffset - eventOffsetInSeconds;
}

and then, when you set startTime and ednTime for CalendarEvent I calculate time zone schedule event to the local time zone:

sessionEvent.setStartTime(qdt.addSecs(offsetDiffInSeconds));

so for now, it works, but I really need a list of time zone identifiers of Cascades

and an easier way to get the diff between 2 zones or available inside the Cascades QTimeZone class

opens another thread on this

Tags: BlackBerry Developers

Similar Questions

  • I am running windows 7 and zone alarm and cannot download the new update of firefox whice is 7-0-1

    I got message saying there was an update for 7 0 1 firefox but I download the update, but it will not install I also lost more than firefox, as I said I am running windows 7 32 bit and zone alarm on the pc zone alarm came that the download was not stable

    You must uninstall your current Firefox installation, and then reinstall Firefox.

    -> Uninstall Firefox on your computer

    • DO NOT SELECT DELETE THE SETTINGS AND DATA OF THE USER
    • Restart your system

    -> Download Firefox latest version of one of these links by using a different Web browser:

    -> Installation of Firefox

    Check and tell if its working.

  • Windows 7 compatibility issues and Zone Alarm.

    I installed WINDOWS 7 RC and up here a lot of work but the only problem it is or what I found, it is ZONE ALARM would not give a number of SP1, although I searched a lot of WINDOWS 7 SP1, which I assume is still not available, I tried to install VISTA SP1 but my bad because they are not compatible and will not be installed.

    Help for this problem would be appreciated, thanks.

    SP means 'service pack'... a service pack is not available for Windows 7 for a while to come... Try to install in compatibility mode Vista SP1.

  • Vista home premium and Zone alarm software

    Just changed computer for Acer7730ZG with vista home premium. When I try and install the security software of Zone Alarm at the end of the installation, a message appears saying the data execution Protection has stopped the program. Have tried to turn it off, but it is said, he has to be on for this software. Ask the zone alarm, but not joy. They told to download a patch, but the patch wasn't for my version of Vista. Warning says don't download if not for your version. Help!

    "denlev" wrote in message News: 876a97c8-8803-49a1-b75f-7edf941775f1...

    Christmas salvation

    It does not mention the sp1 that is all this I, he mentioned sp3 and something else, but say not to use this patch if your thing is here. I'm not good with computers. I like zone alarm. its something to do with that thing for the execution of the data. Everyone says to stay away from vista but I got a great deal on the laptop, and I like acer.

    Thank you

    If you're running SP1, then you NEED to update your system to SP2! There's a reason why you haven't, yet?
     
    Zone Alarm has had its problems over the years in all versions of Windows, I've never used a Win98 upward. I really think you would be better off without her, but it's your decision to make.
    DEP is here to protect your computer, and does so at a level well below ZoneAlarm can.
    I just realized that I don't know firewall - you can talk about security suite? Which version you want to install? and what patch?
     
    It looks like 'Acer eDataSecurity' may be the fly in the soup here - you should probably uninstall it in any case as it appears is not updated significantly, so is probably also holed in Switzerland cheese :)
    (FWIW, I uninstalled here since so after purchase with no ill effects)
    The reason why, I feel is ZA and Acer stuff are fighting for control of emails, etc., and because Acer was there, first of all, it is winning :) - same effect as having two AV of the present.
     
    HTH
     
     
     
    --
     

    Noel Paton | Nil Carborundum Illegitemi | CrashFixPC

  • How to set up zones and zone sets to UCS

    Hello

    Engineer of a reseller create two types of areas, zoning based on pWWN and zoning based on the interface.

    Based on the interface areas have been added to a zone set.

    The basic pWWN areas should be added to the whole of the area?

    Example:

    Storage system, 1 set

    Storage controller a 0 pWWN channel is 21:00:00:d0:23:09:5 c: 6 c, connect to the a 5 port switch

    Storage controller A channel 1 pWWN is 22:00:00:d0:23:09:5 c: 6 c, connect to the port of switch B 5

    Storage controller B 0 pWWN channel is 21:00:00:d0:23:19:5 c: 6 c, connect to the a 6 port switch

    The B channel 1 pWWN storage controller is 22:00:00:d0:23:19:5 c: 6 c, connect to the port of switch B 6

    9148 MDS, 2 games

    UCS 6140XP, 2 games

    UCS 5108, 6 games

    UCS B250 M2, 45 sets

    the area on the switch A configuration:

    Name vsan 801 hz_1_5_6 box
    Member of the interface fc1/1 swwn 20:00:00:05:73:bb:7 b: 10
    Member of the interface fc1/5 swwn 20:00:00:05:73:bb:7 b: 10
    Member of the interface fc1/6 swwn 20:00:00:05:73:bb:7 b: 10

    Name vsan 801 hz_2_5_6 box
    Member of the interface fc1/2 swwn 20:00:00:05:73:bb:7 b: 10
    Member of the interface fc1/5 swwn 20:00:00:05:73:bb:7 b: 10
    Member of the interface fc1/6 swwn 20:00:00:05:73:bb:7 b: 10

    area name PS01-HBA0 vsan 801
    Member pwwn 20:00:00:21:01: ff: 00:bf
    Member pwwn 21:00:00:d0:23:09:5 c: 6 c
    Member pwwn 21:00:00:d0:23:19:5 c: 6 c

    area name PS02-HBA0 vsan 801
    Member pwwn 20:00:00:21:01: ff: 00:af
    Member pwwn 21:00:00:d0:23:09:5 c: 6 c
    Member pwwn 21:00:00:d0:23:19:5 c: 6 c

    area name PS03-HBA0 vsan 801
    Member pwwn 20:00:00:21:01: ff: 00:8f
    Member pwwn 21:00:00:d0:23:09:5 c: 6 c
    Member pwwn 21:00:00:d0:23:19:5 c: 6 c

    area name PS04-HBA0 vsan 801
    Member pwwn 20:00:00:21:01: ff: 00:9f
    Member pwwn 21:00:00:d0:23:09:5 c: 6 c
    Member pwwn 21:00:00:d0:23:19:5 c: 6 c

    area name PS05-HBA0 vsan 801
    Member pwwn 20:00:00:21:01: ff: 00:6f
    Member pwwn 21:00:00:d0:23:09:5 c: 6 c
    Member pwwn 21:00:00:d0:23:19:5 c: 6 c

    area name PS06-HBA0 vsan 801
    Member pwwn 20:00:00:21:01: ff: 00:7f
    Member pwwn 21:00:00:d0:23:09:5 c: 6 c
    Member pwwn 21:00:00:d0:23:19:5 c: 6 c

    area name PS07-HBA0 vsan 801
    Member pwwn 20:00:00:21:01: ff: 00:4f
    Member pwwn 21:00:00:d0:23:09:5 c: 6 c
    Member pwwn 21:00:00:d0:23:19:5 c: 6 c

    area name PS08-HBA0 vsan 801
    Member pwwn 20:00:00:21:01: ff: 00:5f
    Member pwwn 21:00:00:d0:23:09:5 c: 6 c
    Member pwwn 21:00:00:d0:23:19:5 c: 6 c

    area name PS09-HBA0 vsan 801
    Member pwwn 20:00:00:21:01: ff: 00:2f
    Member pwwn 21:00:00:d0:23:09:5 c: 6 c
    Member pwwn 21:00:00:d0:23:19:5 c: 6 c

    area name PS10-HBA0 vsan 801
    Member pwwn 20:00:00:21:01: ff: 00:3f
    Member pwwn 21:00:00:d0:23:09:5 c: 6 c
    Member pwwn 21:00:00:d0:23:19:5 c: 6 c

    name zoneset801 801 vsan zone set
    Member hz_1_5_6
    Member hz_2_5_6

    configuration of the switch box B:

    Name vsan 802 hz_1_5_6 box
    Member of the interface fc1/1 swwn 20:00:00:05:73:b7:8e:d8
    Member of the interface fc1/5 swwn 20:00:00:05:73:b7:8e:d8
    Member of the interface fc1/6 swwn 20:00:00:05:73:b7:8e:d8

    Name vsan 802 hz_2_5_6 box
    Member of the interface fc1/2 swwn 20:00:00:05:73:b7:8e:d8
    Member of the interface fc1/5 swwn 20:00:00:05:73:b7:8e:d8
    Member of the interface fc1/6 swwn 20:00:00:05:73:b7:8e:d8

    area name PS01-HBA1 vsan 802
    Member pwwn 20:00:00:21:01: ff: 01:8f
    Member pwwn 22:00:00:d0:23:09:5 c: 6 c
    Member pwwn 22:00:00:d0:23:19:5 c: 6 c

    area name PS02-HBA1 vsan 802
    Member pwwn 20:00:00:21:01: ff: 01:9f
    Member pwwn 22:00:00:d0:23:09:5 c: 6 c
    Member pwwn 22:00:00:d0:23:19:5 c: 6 c

    area name PS03-HBA1 vsan 802
    Member pwwn 20:00:00:21:01: ff: 01:6f
    Member pwwn 22:00:00:d0:23:09:5 c: 6 c
    Member pwwn 22:00:00:d0:23:19:5 c: 6 c

    area name PS04-HBA1 vsan 802
    Member pwwn 20:00:00:21:01: ff: 01:7f
    Member pwwn 22:00:00:d0:23:09:5 c: 6 c
    Member pwwn 22:00:00:d0:23:19:5 c: 6 c

    area name PS05-HBA1 vsan 802
    Member pwwn 20:00:00:21:01: ff: 01:4f
    Member pwwn 22:00:00:d0:23:09:5 c: 6 c
    Member pwwn 22:00:00:d0:23:19:5 c: 6 c

    area name PS06-HBA1 vsan 802
    Member pwwn 20:00:00:21:01: ff: 01:5f
    Member pwwn 22:00:00:d0:23:09:5 c: 6 c
    Member pwwn 22:00:00:d0:23:19:5 c: 6 c

    area name PS07-HBA1 vsan 802
    Member pwwn 20:00:00:21:01: ff: 01:2f
    Member pwwn 22:00:00:d0:23:09:5 c: 6 c
    Member pwwn 22:00:00:d0:23:19:5 c: 6 c

    area name PS08-HBA1 vsan 802
    Member pwwn 20:00:00:21:01: ff: 01:3f
    Member pwwn 22:00:00:d0:23:09:5 c: 6 c
    Member pwwn 22:00:00:d0:23:19:5 c: 6 c

    area name PS09-HBA1 vsan 802
    Member pwwn 20:00:00:21:01: ff: 01:0f
    Member pwwn 22:00:00:d0:23:09:5 c: 6 c
    Member pwwn 22:00:00:d0:23:19:5 c: 6 c

    area name PS10-HBA1 vsan 802
    Member pwwn 20:00:00:21:01: ff: 01:1f
    Member pwwn 22:00:00:d0:23:09:5 c: 6 c
    Member pwwn 22:00:00:d0:23:19:5 c: 6 c

    name zoneset802 802 vsan zone set
    Member hz_1_5_6
    Member hz_2_5_6

    All areas not added to all areas are actually not used, depending on whether the areas that aren't yet in all of areas are required, yes you will have to add them in.

    However, the WWPN you have listed do not seem to use the Cisco format recommended for pools WWPN (20:00:00:25:B5:xx:yy:zz) and maybe you are not pools or areas are not associated with UCS? If they are indeed UCS related areas then yes add to all areas, but plan instead to use the pools if this is the case.

    My suggestion would be to use all fields WWPN and not mix with the interface areas.

    On each MDS switch, create a zone that contains only the two WWPN in the storage controllers, ideally using an easy to identify the alias. This ensures that the ports of SAN can still see each other. Then, create an additional area for each UCS blade that contains the WWPN of the Pool WWPN blade, as well as the above mentioned storage area. This allows the vHBA to see the ports of SAN.

    Here is a reference document, that you may find useful.

    http://www.Cisco.com/en/us/docs/storage/san_switches/MDS9000/SW/San-OS/quick/guide/qcg_zones.html

  • MS updatees KB951748 and Zone Alarm

    If you use any flavor of ZoneAlarm and XP, do not install MS update KB951748. If you have already installed and lost connectivity, uninstall it using the Add/Remove applet in Control Panel. ZA and MS are aware of the problem and are working on a fix.

    ZoneAlarm has released a fix. Update your ZoneAlarm product, you will be pushed a new version of any product ZoneAlarm, you have installed. The new product is safe for the update KB951748.

  • How to solve click and zones of their advice...?

    My project is simple.

    Slide 1 jumps to 3 when the click is correctly selected.

    Slide 1 after 3 tries to 1-2 slide jumps where I indication "click here".

    When I saw the index slide 2 project does not appear. Properties of the click box shows that the suspicion is selected and I deselected the success and failure check boxes

    Hi again

    Then you want the user click at a particular location, right? Surely, you realize that if you size a click box to be the whole movie, the user will be able to click anywhere they like to operate the click box. I think that's probably not the behavior you're looking for.

    You really did not help much because you did not really say what behavior you want. I don't know if you be intentionally evasive, due to problems of 'sensitive data' or maybe you're not sure just the desired behavior, and this is one of these "I'll know that when I see" stuff.

    From what you wrote it seems to want a "Hint" is visible at the entrance to the screen? Assuming that I'm not wrong, why not organize a text caption to simply present when the user enters the screen. You can read what you want. You can also hang with a click box or button to give time to the user to read and understand what the screen is about. They would then click to continue.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • V18 with win xp sp3, avast and zone alarm attach more files. After reinstall added a file then no more

    Gmail gives no problem. Was no problem on earlier versions. Incoming attachments seem to be readable

    Please try version 19.0 as many questions is fixed in the latest version. Thank you!

  • Unable to fix the daylight of saving time and windows time zone

    original title: summer time (dst} and zone schedule windows.) will not correct when using fix it Center or by any other recommendations suggested by windows solutions why.

    summer time (dst) and time zone windows, correct, using fix it Center or by all the recommendations of qther by the windows Solution Center please notify

    Hello

    ·        What operating system is installed on your computer?

    ·        What happens when you run Microsoft fixit?

    ·        Which is exactly the problem that you are facing in the time and time zone in Windows?

    Please see: How to configure daylight saving time for Microsoft Windows operating systems

    http://support.Microsoft.com/kb/914387

    Post back with the required information so that we can help you further.

  • Satellite Pro A40 and F-Secure

    Hi all

    I thought I'd share a recent experience with you all:

    I was shopping a new anti-virus program and thought I'd try a few versions to test first to see that it fits my needs better before parting with my money. Taking care to try only one program at a time, I loaded a trial of F-Secure Anti-virus (download from their own website). When I tried to install it, he insisted that I uninstalled a few other programs first including Ad-aware SE, I did to avoid conflict.

    At the end of installation, I restarted Windows XP Pro as instructed, to see that after login Windows, little or no progress was made to load every startup programs usual.

    I systematically enabled and disabled in each program to see where the start was not and found very quickly that whatever this is vaguely related to security caused a software conflict of one kind or another, including anti-spyware WinCleaner and Zone Alarm Pro. It seemed a bit strange to me that I need to disable the firewall, so I uninstalled F-Secure Anti-virus and another program installed antivirus instead.

    I am now using Kaspersky Anti-virus instead, with all my other programs security running with no problems.

    It may have simply been an isolated case where I just had an unlucky combination of the hardware and software, or maybe the version of F-Secure, I had was not install properly, that it in either it didn't work so I thought I would let you all know and hopefully save someone else the frustration and inconvenience...

    Hi Graeme

    Thanks for posting about your experience. To protect my house specifications, I use Avira AntiVir PersonalEdition and ZoneAlarm. I use both of them for about two years and so far I didn't have problems with the virus. From time to time also use Ad-aware SE.

    I noticed that many applications need a lot of CPU activity antivir while running in the background.

    Bye and good luck!

  • Control of VCS - H460 and punishment should be active?

    I have control of VCS and highway in production the sanction and h460 are both active on the highway, but inactive on the control.  Is this correct?

    I guess you saw the 'dormant' on a xstatus page https:///h323, right, or it is mentioned

    somewhere else as well?

    Maybe that Andreas might followed a request for improvement, because at least it can be confusing.

    On a VCS - C it appears in red (at least) letters on h323 config page.

    May not show at all on the vcs - c might be useful as well...

    In general h460 is a party which makes the highway a highway.

    If you would like to try for example to access to the

    https:///locallyregisteredendpoints page he would tell you that you do not have a license.

    H460 is a party that makes the fast lane of the motorway.

    So this 'inactive' is nothing you need to worry, this is the desired behavior. And its

    OK h.460 is not used on the SCV - c (this is not a bug it's a feature :-))

    If your firewall allows it and your VCS-E is set up to do this, you can try to register endpoint

    with the VCS E h.460.

    Generally when having strange symptoms its worth checking that there is no NAT help / Application

    bridge layer or what ever between the components involved and firewall ports are correctly

    configured and zone rules and the research of course are configured correctly.

    Read also the notes of publication and eventually upgrading to the latest versions of software.

    The course area has options has two h323 options that I would try to play in such a case:

    Demultiplexing "H.460.19" and "Protocol" mode (must be the same on vcs - c and - e).

    Andreas: What are the use cases of these parameters?

    In any case, his strange with his scrambled.

    J.House: Please note the answers using the star under the messages!

  • i, m, difficult to synchronize my pedals proflight yellow egg and the rudder with fsx

    during a turn in flight if I turn the yellow a bit far left or right, the yellow of the whips above screen. Similarly rudder react in the same way the slightest movement left or right and the a/plane turns violently. I have the sensitivity set to 80% on both and zone zero to 5%

    Hello

    The question you posted on Microsoft X Flight Simulator would be better suited in the forum of Microsoft flight simulator. Please visit the link for help:

    http://www.Microsoft.com/products/games/FSInsider/tips/pages/default.aspx

    http://support.Microsoft.com/ph/7745

  • Zone after PeopleSoft installation default

    After the default Installation I see the time zone is set by default to PDT. I made the change of Base CST time zone to PeopleTools-> utilities-> Administration-> Options PeopleTools, but the process still shows as PDT?

    Is there something that needs to be done in PeopleTools-> utilities-> International > zones for CDT appear?

    I don't know if I understand your question - what process always shows up also TDP?

    If you haven't done so already, you should check the 'Adjustment and maintenance of zones' section in the PeopleTools 8.51 Global Technology PeopleBook.

    You might want to watch PeopleTools > customizations > Customization Options, select the PeopleTools category and check the LTZONE and TZONE. LTZONE sets the local time zone and ZONE sets whether or not the local time zone is used by default.

    Otherwise CDT should be defined as the 'ID for DST' associated with the zone of CSE, and you must watch the Daylight Savings tab data to see if/when daylight savings time is in effect for this time zone. Switch to DST IDs page to see what represents each ID start/end of DST.

    Depending on your version of PeopleTools, you may need to apply a DST update to get the latest DST rules.
    Check the following note of support for more details:

    Changes to daylight saving time in the United States in 2007: Impact on PeopleSoft Enterprise customers [ID 651434.1]

    Kind regards
    Bob

  • not strong enough after updating iTunes

    Hello

    After updating iTunes yesterday, itunes is not as strong as before; of course, I changed volume in the menu bar as well as in volume ('her') maximum system configuration. If I use VLC, the volume is OK; Therefore, I don't think it's a problem of speakers of the Mac and iTunes.

    Thank you very much for your help

    Haperic

    Hello Haperic!

    From what you have posted, the sound after update of Mac is not as strong through iTunes but is fine using VLC or other applications. We certainly have to check a few things with the volume.

    If you haven't done so already, we'll leave iTunes in the menu next to the  iTunes when iTunes is active. Then quit iTunes.  Or command + Q on the keyboard.  Open later and try to play a few things after.

    No change after that, then go ahead and restart the Mac and try again, please.

    If it's still the same after the restart, then we'll reset the NVRAM/PRAM memory.

    How to reset the NVRAM on your Mac - Apple Support

    Reset the NVRAM

    1. Stop your Mac.
    2. Look for the following keys on the keyboard: command (⌘), Option, P, and R.
    3. Turn on your Mac.
    4. Press and hold the Command-Option-P-R keys, immediately after hearing the startup sound.
    5. Hold down these keys until the computer restarts and you hear the tone of starting for a second time.
    6. Release the keys.

    After resetting the NVRAM, you may need to reconfigure the parameters of the speaker volume, screen resolution, selection of boot disk and zone information.

    I hope this helps.  See you soon!

  • Cannot find or set up a web site

    I use Firefox V 8.0. I can't do a search. When I type in a word or phrase and press search (or enter), nothing happens. No activity whatsoever. When I click on the home page, nothing happens. If a tab already has a site on it, then this site will go up, but nothing new can be put in place. Even by typing the exact name of the site, nothing happens. I use Explorer to send you this.
    Note: I install AVG V 2012.0.1873 and Zone Alarm V 10.1.065.000 yesterday. Since I restarted, after installation of these problems, Firefox has not worked properly.
    I'd appreciate any help. I don't really want to uninstall AVG or Zone Alarm because of the protection they offer. I used Norton, but my subscription has expired.

    One possible cause is security software (firewall) that blocks or limits Firefox or plugin-container process without informing you, possibly after the detection of changes (update) for the Firefox program.

    Delete all rules for Firefox in the list of permissions in the firewall and leave your firewall again ask permission to get full unlimited access to the internet for Firefox and the plugin-container and the update process.

    See:

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

Maybe you are looking for