[Lazarus] Google Calendar API TEvent start or _end (TDatetime) question
francesco.sammarco at gmail.com
Fri Jun 5 08:04:22 CEST 2020
Of course, it's just not the idea of how to check if the time falls in
daylight saving time or not.
Il giorno gio 4 giu 2020 alle ore 17:24 wkitty42--- via lazarus <
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
> > or updating of the appointment. The API returns the content of the newly
> > or inserted appointment, I compare the hours contained with the hours I
> > 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
> and adjust it as needed before you do the first posting to the calendar? i
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lazarus