Kalendereintrag Problem mit Zeitzone

  • Kalendereintrag Problem mit Zeitzone


    Hallo Leute!


    Ich erstelle per Script einen Kalendereintrag.


    Startdatum 7:00 Uhr Ende Datum 9:00 Uhr


    doc.StartTimeZone="Z=-3$DO=1$DL=3 -1 1 10 -1 1$ZX=71$ZN=W. Europe"
    doc.EndTimeZone ="Z=-3$DO=1$DL=3 -1 1 10 -1 1$ZX=71$ZN=W. Europe"


    Wenn ich mir jetzt aber den Kalendereintrag anschaue, steht 5:00 Uhr bis 7:00 Uhr.


    Was mach ich Falsch?


    Bin für jeden Tip dankbar!


    Hier noch mal der wichtigste Code:


    doc.AltChair= Vertreter
    doc.AppointmentType = "0"
    doc.CalendarDateTime=dateStart.LSGMTTime
    doc.Chair =Vertreter


    doc.EndDate=DateEnd.Dateonly
    doc.EndDateTime =DateEnd.LSGMTTime
    doc.EndTime = DateEnd.Timeonly


    doc.EndTimeZone ="Z=-3$DO=1$DL=3 -1 1 10 -1 1$ZX=71$ZN=W. Europe"
    doc.ExcludeFromView="D:S"
    doc.Form ="Appointment"
    doc.MeetingType="1"
    doc.Principal =Vertreter
    doc.SchedulerSwitche="1"
    doc.SequenceNum=1
    doc.StartDate=dateStart.DateOnly
    doc.STARTDATETIME=dateStart.LSGMTTime
    doc.StartTime=dateStart.TimeOnly
    doc.StartTimeZone="Z=-3$DO=1$DL=3 -1 1 10 -1 1$ZX=71$ZN=W. Europe"
    doc.Subject=ImpName
    doc.body =Impname
    doc.Location = ImpStreet
    doc.logo = "stdNotesLtr0"
    Call doc.ReplaceItemValue("_ViewIcon",160)
    'doc.ViewIcon= 160
    'doc.OrgTable
    'doc.RepeatInstanceDates
    'doc.Repeats
    If doc.PublicAccess(0) <> "" Then
    doc.~$PublicAccess = "0"
    Else
    doc.~$PublicAccess = "1"
    End If


    mfg


    PapaRanger

  • Zitat

    Startdatum 7:00 Uhr Ende Datum 9:00 Uhr


    doc.StartTimeZone="Z=-3$DO=1$DL=3 -1 1 10 -1 1$ZX=71$ZN=W. Europe"
    doc.EndTimeZone ="Z=-3$DO=1$DL=3 -1 1 10 -1 1$ZX=71$ZN=W. Europe"


    Seit wann hat Western Europe einen Offset von "-3" ??? AFAIK haben wir noch immer +1 Gegenüber GMT/UTC (+2 bei Sommerzeit).


    Und wie kommst Du auf "$ZX=71" ???


    P.S.:
    Weiters hast Du IMHO einen Fehler in

    Code
    doc.EndTime = DateEnd.Timeonly
    doc.StartTime=dateStart.TimeOnly


    Im IBM Lotus Notes Calendaring & Scheduling Schema kann man nämlich nachlesen:

    Zitat

    StartTime
    The UTC (date &) time the entry begins. It is derived from StartDateTime and is typically the same for non-repeating entries. This is a separate item from StartDate, even though they both share the same information, because a UI change for R5 to split the “combo” Date/Time picker into two separate items requires two separate items.

    Laut Designer-Hilfe liefert TimeOnly allerdings "A string representing the time part of a date-time, in the local time zone." zurück. Du schreibst also einen UTC+2 Eintrag in ein Feld, dass einen UTC-Wert erwartet.

  • Hallo!


    Danke für Deine Hilfe, das wars!




    Also das mit -3 hab ich gemacht zum Testen und versehentlich mitkopiert, hab ich schon wieder auf 1 zurückgeändert.



    $ZX=71
    Ich habe ein Kalenderdoc erstellt und habe mir dann diesen Wert herauskopiert


    doc.StartTimeZone="Z=-3$DO=1$DL=3 -1 1 10 -1 1$ZX=71$ZN=W. Europe"


    warum stimmt da leicht was nicht?


    Danke PapaRanger