[Lazarus] Google Calendar API TEvent start or _end (TDatetime) question

John Landmesser jmlandmesser at gmx.de
Fri Jun 5 14:04:52 CEST 2020


As Example for Germany:

https://wiki.freepascal.org/Daylight_saving_time/de









Am 05.06.20 um 14:00 schrieb Francesco Sammarco via lazarus:
> Ok. But not so how to do it. Is there an example?
>
> Il giorno ven 5 giu 2020 alle ore 13:54 wkitty42--- via lazarus
> <lazarus at lists.lazarus-ide.org <mailto:lazarus at lists.lazarus-ide.org>>
> ha scritto:
>
>     On 6/5/20 2:04 AM, Francesco Sammarco wrote:
>     > Of course, it's just not the idea of how to check if the time
>     falls in daylight
>     > saving time or not.
>
>
>     why not? that is the problem and apparently the API and/or backend
>     code at
>     google don't handle it so the creator of the event/appointment must...
>
>
>     > Il giorno gio 4 giu 2020 alle ore 17:24 wkitty42--- via lazarus
>     > <lazarus at lists.lazarus-ide.org
>     <mailto:lazarus at lists.lazarus-ide.org>
>     <mailto:lazarus at lists.lazarus-ide.org
>     <mailto:lazarus at lists.lazarus-ide.org>>> ha scritto:
>     >
>     >     On 6/4/20 10:37 AM, Francesco Sammarco via lazarus wrote:
>     >      > If anyone cares I think I have found a working way.
>     Basically I do the
>     >     insertion
>     >      > or updating of the appointment. The API returns the
>     content of the newly
>     >     updated
>     >      > or inserted appointment, I compare the hours contained
>     with the hours I
>     >     wanted
>     >      > to set. I calculate the difference and apply it. I make a
>     second update
>     >     with the
>     >      > correct date / time. I know it's not elegant, but for the
>     moment it seems
>     >     the
>     >      > only working way.
>     >
>     >
>     >     can you not determine if your desired time is in the
>     daylight saving tim
>     >     eperiod
>     >     and adjust it as needed before you do the first posting to
>     the calendar? i was
>     >     going to suggest that yesterday when i first read of your
>     plight but i
>     >     wanted to
>     >     wait and see what others might suggest...
>     >
>     >     so basically:
>     >
>     >     1. you decide your time and date...
>     >     2. check if it is within the daylight saving time period for
>     your area...
>     >     2a. if #2 is yes, adjust the time as needed...
>     >     2b. if #2 is no, leave the time as originally set...
>     >     3. publish the appointment/event in the calendar...
>     >     4. done ;)
>     >
>     >
>     >     --
>     >        NOTE: No off-list assistance is given without prior approval.
>     >              *Please keep mailing list traffic on the list where
>     it belongs!*
>     >     --
>     >     _______________________________________________
>     >     lazarus mailing list
>     > lazarus at lists.lazarus-ide.org
>     <mailto:lazarus at lists.lazarus-ide.org>
>     <mailto:lazarus at lists.lazarus-ide.org
>     <mailto:lazarus at lists.lazarus-ide.org>>
>     > https://lists.lazarus-ide.org/listinfo/lazarus
>     >
>
>
>     --
>       NOTE: No off-list assistance is given without prior approval.
>             *Please keep mailing list traffic on the list where it
>     belongs!*
>     --
>     _______________________________________________
>     lazarus mailing list
>     lazarus at lists.lazarus-ide.org <mailto:lazarus at lists.lazarus-ide.org>
>     https://lists.lazarus-ide.org/listinfo/lazarus
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200605/4b7d50c6/attachment-0001.html>


More information about the lazarus mailing list